### 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:

1. Make sure the catalog where the HDS locates is opened, then click the New Report Set button on the Standard toolbar.
2. In the New Report set dialog, specify the title and layout of the first report in the report set as required, then click OK.
3. In the Data screen of the report wizard, choose the HDS with which you want to build the report.
4. 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:
  1. In the Catalog Browser, select the HDS that is used by the report from the Hierarchical node, and then expand the Properties sheet.
  2. Change the URI property of the HDS to a relative path, for example, leaving only the name of the XML file.
  3. Create a new folder, and copy the report, the catalog, the XML file and the XSD file (if any) to the newly created folder.
  4. Click File > Publish To > JReport Enterprise Server to publish the folder (for details, see Publishing resources remotely).
  5. 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:

- Example 1: Developing a report from an HDS with dynamic XML URI
- Example 2: Developing a report from a parallel HDS