#### Example 2: Developing a report from a parallel HDS

The method for developing a report from a parallel HDS is the same as from a general HDS. However, take note of the following when building reports from parallel HDSs.

Groups in parallel HDS

When you insert a group by field, its children will also be inserted.

The parallel structure in the parallel HDS is represented as groups in JReport Designer. So, when you develop a report from a parallel HDS, it will automatically be grouped. By default, JReport Designer will use the first found field as the group by field. Note that you can neither add a new group by field nor remove the group by fields that are automatically added. However, if there is more than one field available to with which to group the sub-tables, you can replace the group by field with one of the other available fields.

Rules for inserting an object

- Objects in different branches should be placed in the banded object panel they belong to. That is, a banded object panel cannot hold objects which belong to different branches.
- The children of a branch, including the columns, formulas, summaries, sub-branches, and children of the sub-branches, can be inserted into any of their parent panels. If the parent panel is shared by more than one branch, that is, if the parent panel works as a trunk (global panel), it can be shared by the children of all the branches it holds. However, note that each instance of a panel, such as a report/page/group header/footer panel, and detail panel, can only hold the children from the same branch. If you want to insert the children of different branches into the shared global panel, you will have to create as many instances of this panel as per the number of branches, and then insert the children of each branch into these panels.
- Where a formula/summary can be inserted depends on the branch attributes of the formula/summary. Generally speaking, when a formula/summary creates relationships with a column, it will obtain the same branch attributes as those of the related column, and it can be placed in the panels where the column can be placed.

  A global formula, which is not associated with any branch columns, can be placed to any position of the report.

  - When you remove a branch using the report wizard, the related panel will also be removed.
  - A chart based on a field can only be placed in its own panels, which include most of the global panels, except for the detail panel.
  - A crosstab must be built upon data of the same branch, and it should be placed in the location where the branch data resides.
  - Where a text box object can be inserted depends on the branch attributes of the columns (formulas/summaries) that it contains. A text box object can hold only the data of the same branch.