Creating predefined filters

You can predefine filters in business views for end users to choose when they design or modify web reports and library components. The following example shows the basic usage.

  1. Open the catalog file JinfonetGourmetJava.cat in <install_root>\Demo\Reports\TutorialReports.
  2. Create a business view called SalesView with the query AnnualSalesbyRegion.
  3. In the Business View Editor window, click Tools > Predefined Filter on the menu bar or click the Predefined Filter button on the toolbar to display the Predefined Filter dialog. See the dialog.
  4. Click the New button, double-click in the Name cell of the filter and change its name to CustomerFilter, then in the Condition panel, click the Add Condition button and define the filter as Customers_Customer ID>=25.
  5. Click the New button to add another filter and name it ContactFilter, then define the filter as Contact Position=Manager.
  6. Click OK in the Predefined Filter dialog to save the filters. You can then apply them when creating or editing web reports and library components based on the business view in JReport Designer or in Web Report Studio after you publish the corresponding catalog to JReport Server.

See also Predefined Filter dialog for additional information about options in the dialog.

Note: When the resources that are used in some predefined filters are removed from the business view, the next time when you open the Predefined Filter dialog, you will be prompted with warning messages showing the details and the filters will be removed automatically from the dialog as well.