When creating reports in JReport Viewer, you can choose to apply some filter to the specified business/report cube to narrow down the data scope of the business/report cube. Filters for business/report cubes are defined into two categories in JReport Viewer: predefined filters and user defined filters. As the name suggests, predefined filters are defined on business/report cubes in advance in JReport Designer, and user defined filters are created on business/report cubes while they are used in JReport Viewer.
Filters can be applied to business/report cubes in JReport Viewer in the following ways:
In the Choose Report Layout box, select the layout as Banded, Crosstab, Table or Chart and then click OK.
Click the Query Filter screen.
All the predefined filters of the selected business/report cube 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/report cube.
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 the basic and advanced modes of the screen for you to define either simple or complex filter expressions. See Filtering report data for details about how to define a filter.
Notes: