
Developing reports from HDS
When you use hierarchical data sources to create reports, you need to be aware of its limitations and unique features. For example, reports created from an HDS are automatically grouped, and an HDS cannot be directly used to create chart, and crosstab. That is to say, if you want to create a chart/crosstab from an HDS, you will need to put it in a banded object, which is created on the HDS, and make the chart/crosstab inherit the dataset of the banded object.
To develop a report from an HDS:
- Make sure the catalog where the HDS locates is opened, then click the New Report Set button
on the Standard toolbar.
- In the New Report set dialog, specify the title and layout of the first report in the report set as required, then click OK.
- In the Data screen of the report wizard, choose the HDS with which you want to build the report.
- Follow the report wizard to create the report.
See also Creating a report for details about how to create reports in JReport Designer.
Notes:
- As hierarchical data sources can only be used to create banded objects, in the New Report dialog, you can only choose to create a standard banded, horizontal banded or mailing label report using the report wizard.
- Since reports created from HDS are automatically grouped, in the Group screen of the banded report wizard, you can neither add more groups by fields nor remove the existing ones. However, you can make changes to the existing group criteria. For example, you can replace a group by field with another one. See illustration.
- When you want to publish reports created from XML format hierarchical data sources to JReport Enterprise Server, the following method is recommended:
- In the Catalog Browser, select the HDS that is used by the report from the Hierarchical node, and then expand the Properties sheet.
- Change the URI property of the HDS to a relative path, for example, leaving only the name of the XML file.
- Create a new folder, and copy the report, the catalog, the XML file and the XSD file (if any) to the newly created folder.
- Click File > Publish To > JReport Enterprise Server to publish the folder (for details, see Publishing resources remotely).
- Start JReport Enterprise Server. You will now be able to run the report on it.
The following are some specific examples about developing reports from HDS:
