Online Help System: UniTest System
Report Template Groups
Groups are used in the report templates to gather together (in groups) data having common properties . For example, to group data by test names (test name here is a common property):
To do this you need to create a new group using the Groups dialog (see The Groups Dialog), accessible through the Groups... command from the Report menu.
We want to group data by test name (test subject), and therefore we need to create the TestSubject data field group. To do this, check Data Field (checked by default) on the Break On group, then select utDataSource.TestSubject from Groups combo box and press the Add button. All group settings can be left as is (default settings). Press the OK button to create the new group and close the Group dialog.
Two bands are added to the report template:
- The "Group Header[0]: TestSubject" band is the header band and
- The "Group Footer[0]: TestSubject" band is the footer band for the newly created group.
In these bands you can enter data to visualize at the beginning and at the end of each group. For example, you can create DBText control for displaying the TestSubject field in the header band, to display the test name (test subject) at the beginning of each group.
The last thing you need to do is to sort the results data in the results database on the test name field, to avoid excessive group breaking when the test name changes from record to record (to sort records test names):
To sort data by field, just click on the Test name field header in the main Report window (a triangle displays on the right of the field header button).
Now your grouped report is ready.
You can create other groups in the same way. Also, you can follow the same steps to create sub groups. Sub groups are useful, for example, to create lists of students grouped by organization names for each test name (i.e. grouped by test name).
See Also:
The Groups Dialog
Results Database Field Names
UniTest System: Report
|