Adding a business view

To create a business view, follow the steps below:

  1. In JReport Designer, click File > Catalog Management > Open Catalog to open the catalog to which you want to add the business view.
  2. In the Data tab of the Catalog Browser, expand the desired data source of the catalog, right-click the Business View node and then click Add Business View.
  3. In the Input Business View Name dialog, enter a name for the business view and click OK.
  4. The Add Table/View/Query dialog is displayed. Add the resources based on which to create the business view. If the catalog data source is connected with multiple connections, you can mash-up multiple data resources in the business view that come from all these connections, including tables, views, synonyms, queries, imported SQLs, stored procedures and user defined data sources. When a query, imported SQL, stored procedure or user defined data source is added, it will be added as a single table with all of its columns. When two resources (for example, a table and a view) use the same name, they cannot be added to the right box at the same time, and when a table is already contained in a query, you cannot add the table and the query at the same time.

    If the current catalog data source contains JDBC connections, the Include Added Tables/Views option is available. Check it if you want to show the tables, views and synonyms that have already been added to the query in the All Tables/Views/Queries box. You can then add the tables, views and synonyms of the JDBC connections to the query as many times as you want by providing different names for the tables, views and synonyms each time you add them in the Input Table Name dialog.

  5. If more than one resource is added for the business view, the Query Editor window appears, in which you can select the columns in each table that you want to use for the business view, add or delete the tables used for creating the business view, set up joins between the tables, create formula fields to use in the business view or add filters to narrow data used for the business view in the same way you edit a query. When done, click OK in the Query Editor to apply the changes.
  6. The Business View Editor window appears. See the window.
  7. Add elements to the business view.
  8. Define hierarchies on the business view to allow end users to drill report data to particular groups.
  9. Create some predefined filters on the business view to narrow down records.
  10. Configure member-level security for the business view if necessary.
  11. Click the Save button on the toolbar to save the business view.
  12. Click File > Close to close the window. The business view will now have been added to the catalog.