Hierarchies can be defined in a business view to allow users to drill report data up and down to particular groups on JReport Server. A hierarchy is defined as a hierarchy category holding one group of data objects sharing a hierarchical relationship, following the order from the highest level to the lowest. For example, these data objects can be added into one hierarchy group called Dates: Sales Year, Sales Quarter, Sales Month, and Sales Date. When any of these group fields are used for grouping data in a table, crosstab or chart, end users can use the context menu to drill up or down to the next level. You can create any number of hierarchy categories such as dates, times, geography, product types, etc.
To define a data hierarchy:
If in the Group box there is an existing category containing just the hierarchical data objects you want to add in a hierarchy group, you can simply select the category name and click to create a new hierarchy containing all the data objects of the category.
To remove a data object from the hierarchy, first select it and then click or the Remove option on its shortcut menu.
To adjust the order of the added hierarchies, select the hierarchies and then click or
or the Move Up or Move Down options on the shortcut menu.
To delete a hierarchy, select it and then click or click Remove on its shortcut menu. If you want to remove all the hierarchies, click Remove All on the shortcut menu.
See also Hierarchy Editor dialog for additional help about the options in the dialog.