All created page report files (.cls) are physically placed in the same directory where the catalog file resides. Due to this, you will not be able to get detailed information about a page report until it is opened in JReport Designer. For example, if you want to find a page report with a special condition, you will have to load each page report. For just a few page reports, this is not a problem. However, the case is different when there are many reports.
JReport provides you with a tool for managing page reports by means of adding them into folders with the Page Report Manager (the Reports tab of the Catalog Browser). You can build folder items in the manager, helping you to divide the page reports into different types at your disposal. Then, the reports can be added to the folder, and worked on just like processing files in a file system--add, open, delete, move, rename and search items. In all, the feature of report folder implemented in catalogs enables you to manage your page reports in a way that can better satisfy your requirements.
The following are some concepts used in the Page Report Manager:
In the Page Report Manager, you can manage your page reports as follows:
To add a folder item to the Page Report Manager:
Now, a new folder will have been added as a sub node, and the default name for the folder is Folder1, Folder2.... However, you can rename the folder as required. To do this, right-click the folder item and select Rename from the shortcut menu, then type a new name in the name box, and then click outside the box (or just press Enter on your keyboard).
To add a report item to the Page Report Manager:
Now, the selected reports have been added to the specified folder. You can double-click any report item in the Page Report Manager to open the report. The default name of the report item is the file name of the report. However, you can give the item another name as you would with a folder item.
A report can be added to multiple folders in case you want to include it in multiple categories.
Wildcard searches for report name in the Page Report Manager are supported. To search a report item, follow the steps below:
You can export report information in the Page Report Manager to a table in a DBMS. The default name of the table is ReportsInfo. You can change the name as required. Each row of the table is a report description. To do this:
Note: If a table already exists, it will be replaced. So you must be sure that there are no duplicate names in the DBMS.
Any items added to the Page Report Manager can be moved to another folder if required. To do this:
By using the Catalog Browser, you can delete a report from the file system.
To delete a report or a folder or multiple items:
If a report is deleted manually from the local file system, later when you open the Catalog Browser, you will see the node icon that represents the report is marked with a red cross. You can use the above method to remove the unused node.