You can apply filters to a page report so as to narrow down the data displayed in the report. The filters can be applied to the business views used by data components such as banded objects, tables, crosstabs and charts in the report, or to the data components themselves.
For data components created on business views or converted to use business views in a page report, you can apply filters to the business views they use to narrow down the data scope of the business views. Filters for business views are defined into two categories in Page Report Studio: predefined filters and user defined filters. As the name suggests, predefined filters are defined on business views in advance in JReport Designer, and user defined filters are created on business views while they are used in Page Report Studio.
Business view filters are defined on the component level in Page Report Studio, which means each time you create a component, you can apply a filter to the business view it applies without affecting other components based on the same business view.
A JReport Live license for JReport Server is required in order to use this feature. If you do not have the license, contact your Jinfonet Software account manager to obtain it.
To apply a filter to the business view a data component uses:
at the upper left corner of the component. All the predefined filters of the business view the data component uses are listed in the Query Filter drop-down list. Choose the one you want to apply. If you want to further edit the filter, click the Edit button and then redefine the filter as required. The edited filter will then be saved as a user defined filter to the business view.
If you prefer to define a filter on your own, select User Defined from the Query Filter drop-down list, then define the filter according to your requirements.
There are basic and advanced modes of the dialog for you to define either simple or complex filter expressions.

next to the value drop-down list, then the fields and parameters of the same data type as the specified field and the special field User Name will be available in the drop-down list. Select the required one to use. To go back to filter the field by value, click
. You can also enter the value manually in the text box and when you type the value, if multiple values are required, they should be separated with ",", and if "," or "\" is contained in the values, write it as "\," or "\\".Repeat this to add more filter expressions if required. To delete a condition line, click
on its left.

next to the value drop-down list, then the fields and parameters of the same data type as the specified field and the special field User Name will be available in the drop-down list. Select the required one to use. To go back to filter the field by value, click
. You can also enter the value manually in the text box and when you type the value, if multiple values are required, they should be separated with ",", and if "," or "\" is contained in the values, write it as "\," or "\\".To group some conditions, select them and click the Group button, then the selected conditions will be added in one group and work as one line of filter expression. Conditions and groups together can be further grouped. To take any condition or group in a group out, select it and click Ungroup. It is the equivalent of adding parenthesis in a logic expression.
To adjust the priority of a condition line or a group, select it and click the Up or Down button.
To delete a condition line or a group, select it and click the Delete button.
If the special field User Name is used in the filter condition, the user name used to log onto JReport Server will be applied to compose the filter expression; if a parameter is used, after clicking the OK button you will be prompted to specify the parameter value to dynamically define the filter condition.
You can also apply a filter to the business view a data component uses in the Query Filter screen of the report wizard while creating the data component.
When applying filters to the data components themselves in a page report, there are the following ways you can take: using the Filter dialog, using filter controls, and using shortcut menu.
To set the filtering conditions using the Filter dialog:
on the toolbar. The Filter dialog appears.

A filter control is a web control used to filter one or more data components in a report using the same data source. A filter control can do filtering based on one field or multiple fields of the same data type. For details, see Using Filter Control to Filter Report Data.
You can use filter-related commands on the shortcut menu to filter the data in a banded object or table. To do this, point to any value of a field other than the group-by field by which you want to filter data, then right-click to show the shortcut menu. You will see the Filter item which provides a submenu containing the following commands:

After a filter is applied using the Filter shortcut menu, if you open the Filter dialog you can find that the corresponding filter expression displays in the dialog.
Tip: You can customize the following filter-related features for a page report using JReport Designer: