BackPrevious Page Next PageNext

Merging Catalogs

You can make two catalogs that have the same name merged by saving reports of one catalog to another directory in which a catalog of the same name already exists.

When merging catalogs, JReport Designer will check for the differences between the two catalogs, for example, resources that have the same mapping names in the two catalogs may conflict with each other because they have different property values. If there are differences between the two catalogs, based on the Merge Catalog Options setting in the Options dialog, JReport Designer will either identify them and prompt the Merge dialog or ignore them and have them remained in the target catalog. By default, JReport Designer identifies the critical differences that can cause the engine to fail in running reports and marks them in the Merge dialog.

To merge catalogs:

  1. Open a report in the catalog that you want to merge with another catalog.
  2. Click File > Save To.
  3. In the Save To dialog, choose a directory to save the report, where a catalog with the same name as the current catalog already exists.

    If the Merge Catalog Options is specified as Identify All Differences or Identify Critical Differences in the Options dialog and there are conflicting resources between the two catalogs, the Merge dialog appears. It lists all the resources referenced by the report with the conflicting resources marked.

    Merge dialog

  4. Select a conflicting resource, then click the Differences button to view the differences of the resource between the source catalog and target catalog in the Property Differences dialog.

    Property Differences dialog

    The property values of the conflicting resource from the two catalogs are listed in the dialog with any differences highlighted. You can use the Previous/Next button to go to the previous/next conflicting resource between the two catalogs.

  5. To view the parent resources of the selected conflicting resource in the target catalog, click the Target Relation button. The Target Relation dialog then appears showing the relation.

    Target Relation dialog

    Sometimes a resource is marked in the Merge dialog, but in the Property Differences dialog no difference is shown. In this case you can make use of the Target Relation dialog to get its parent resources and check whether the differences exist in the parent resources.

  6. Click any of the following buttons to deal with the selected conflicting resource. Certain button is not activated for specific resource type.
  7. Click the Merge button when all conflicts are settled. JReport Designer then saves the report according to the changes you have made.

When two catalogs are merged via the Merge dialog, you may need to test all the reports in both catalogs to ensure they can work properly.

Note: JReport Designer checks parameters based on the whole catalog. For example, assume that there is a parameter named Param1 in Data Source1 of the source catalog, and there is also a parameter named Param1 in Data Source2 in the target catalog. These two parameters in different data sources will be checked as a conflicting resource. You must rename the parameter in order to get a correct result.

BackPrevious Page Next PageNext