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, Logi 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, Logi JReport Designer will either identify them and prompt the Merge dialog or ignore them and have them remained in the target catalog. By default, Logi 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:
- Open a report in the catalog that you want to merge with another catalog.
- Select File > Save To.
- 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.
- Select a conflicting resource, then select the Differences button to view the differences of the resource between the source catalog and target catalog in the 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.
- To view the parent resources of the selected conflicting resource in the target catalog, select the Target Relation button. The Target Relation dialog then appears showing the relation.
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.
- Select any of the following buttons to deal with the selected conflicting resource.
Certain button is not activated for specific resource type.
- Rename - Renames the resource and copies it to the target catalog with the new name.
- Replace - Uses the resource from the source catalog to replace that in the target catalog. In this case, the reports that use this resource in the target catalog will be impacted.
- Skip - Keeps the values in the target catalog for the resource. In this case, the report that uses this resource in the source catalog will be impacted.
- Select the Merge button when all conflicts are settled. Logi 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:Logi 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.