BackPrevious Page Next PageNext

Using Pre-joins in Queries

Creating queries using pre-join

Editing queries using pre-join

JReport Designer provides you with the option of choosing whether or not to use the Pre-join feature when creating queries. If you want to use it, you must have this option enabled.

To turn on the Pre-join feature:

  1. Make sure the option "Forbid editing data object properties" in the Catalog category of the Options dialog is unchecked.
  2. In the Catalog Manager, select the data source in which you want to create queries, then click Show Properties to expand the Properties sheet.
  3. Set the Pre-join property of the data source to true.

Then, when you add tables contained in the data source to queries in the same data source, the pre-joins defined on the data source will be automatically applied to the tables.

Creating queries using pre-join

When you create a query using the pre-join feature, the following cases may appear:

Editing queries using pre-join

One query is bound with at most one path. Once a path has been specified for a query, when you modify the relationships among the tables, you can make changes to a specific query based on that path, but the path itself will not be changed. When you edit a query, the following cases may appear:

BackPrevious Page Next PageNext