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. In the TutorialReports catalog, create a business view called SalesView with the query AnnualSalesbyRegion.
  2. In the Business View Editor window, click the Predefined Filter button on the toolbar to display the Predefined Filter dialog.
  3. 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.
  4. Click the New button to add another filter and name it ContactFilter, then define the filter as Contact Position=Manager.
  5. 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 JReport Studio after you publish the corresponding catalog to JReport Server.