Understanding Groups in the Report Designer

Understanding Groups in the Report Designer

The articles in this section of the Knowledge Base involve working with Groups for display in your reports. To access the Report Designer, select Toolbox Setup > Design Reports > Design (Report Type) Report. Select New Report to design a report from scratch or New Report from Existing. Select Designer to open Report Designer.

Grouping data is one of the main tasks when rendering reports. Grouping is used both for aesthetic reasons and for the logical separation of Data Rows. There are two bands used in creating grouped reports, the Group Header band, and the Group Footer band.


Fig. 01 – Group Header and Footer

Group Header Band

The Group Header band is responsible for rendering reports that use grouping. Without a Group Header band, it is impossible to generate grouped reports.

The Group Header band is only output once at the beginning of each group. This band is typically used to display header information such as a group name, data, or a grouping condition.

It is necessary to specify a grouping condition using the Group Header band editor, or the Condition property of the band, to create groups within a report.

A Header band is rendered before a Group Header band, regardless of the locations of the bands on the page in Report Designer.

Fig. 02 – Group Header Band

Figure 02 features a band with three Text Components and an Image Component. The component on the top provides the label for the group. Notice this label is the same as the condition determining the report grouping in the band’s header. The three Text Components beneath the group label are headers for the additional data populating the report. The final component is an Image Component for displaying images of the parts.

When rendering a report, the report generator binds the Group Header to the specified Data band that outputs data rows. There must be a Data band to generate reports because data rows are output using this band and because those data rows are the basis of the grouping in the report. Also, the sorting of the rows can be specified, which affects the order in which the groups are rendered.

Using the standard Footer Band with a grouped report would result in the footer being rendered at the end of the report after all of the groups have been output. When it is necessary to display a footer after each group, use the Group Footer band.

The Group Footer band is always output before the Footer band, regardless of where bands may be positioned on the page in Report Designer.

Fig. 03 – Group Footer Band in Report Designer

The Group Footer band outputs information that is specific to each group (See Figure 05 for an example of the Group Footer band in use). For example, when it is necessary to display a count for each group, place a Text Component on the Group Footer band and give it the following expression:

{Count()}

Grouping Conditions

To create a grouped report, a condition that establishes the groups must be created. This condition is set using the Condition property of the Group Header band, or by double-clicking the Group Header band and entering the condition in the Expression tab of the Group Condition window.


Fig. 04 – Condition Property

You MUST define a condition for every group, or no grouping takes place in the rendered report.

Conditions for grouping are generally just the name of a Data Column in the Data Source. As an example, Figure 03 features a report that is grouped by materials. All of the Parts with the same Materials will be grouped—the Materials column “{Parts.MaterialName}” is entered as the condition. 


Fig. 05 – Group by Material Report

The grouping condition used can be any valid value. For example, if you wanted the parts to be grouped according to their names, you could set the condition to a column from the database that contains the necessary part names data “{Parts.Name}.”


    • Related Articles

    • Using the Group Footer Band in Report Designer

      The articles in this section of the Knowledge Base involve working with Groups for display in reports. To learn more about Groups and how to access the Report Designer, see Understanding Groups in the Report Designer. This article regards working ...
    • Nesting Groups in Report Designer

      The articles in this section of the Knowledge Base involve working with Groups for display in reports. To learn more about Groups and how to access the Report Designer, see Understanding Groups in the Report Designer. This article explains the ...
    • Using Render Events on Group Header Bands in Report Designer

      The articles in this section of the Knowledge Base involve working with Groups for display in reports. To learn more about Groups and how to access the Report Designer, see Understanding Groups in the Report Designer. This article details Events in ...
    • Using Group Properties in Report Designer

      The articles in this section of the Knowledge Base involve working with Groups for display in reports. To learn more about Groups and how to access the Report Designer, see Understanding Groups in the Report Designer. This article details properties ...
    • Report Band Properties in Report Designer

      The articles in this section of the Knowledge Base involve working with Report Bands for display in your reports. To learn more about Report Bands, and how to access this section within the Report Designer, see Understanding Report Bands in Report ...
    • Recent Articles

    • Toolbox Release Notes | Build 24.1.1105.641

      The following release notes apply to Toolbox build 24.1.1105.641 Nesting Fix Fig. 1: The fatal error that would occur during processing. There was reportedly an issue that occurred when clients attempted to process a work order using the nesting ...
    • Microvellum Foundation Library Release Notes | Build 24.1025

      The following release notes apply to Microvellum Foundation Library build 24.1025. Additions Added new global variable “Remove Stop Dado On Bottom Edge” for wood drawer boxes. Check this option to run the dado through at the bottom of the sub front ...
    • Toolbox Release Notes | Build 24.1.1030.641

      The following release notes apply to Toolbox build 24.1.1030.641 Routing and Profile Fixes Several issues were found with routing and polyline paths: Fig. 1: Horizontal routes off of a part disappearing (left) and appearing correctly (right). When ...
    • Toolbox Release Notes | Build 24.1.1010.641

      The following release notes apply to Toolbox build 24.1.1010.641 Biesse Winstore Fix Several issues with the Biesse Winstore plugin have been resolved: There was an issue that would sometimes occur wherein materials that were intended to stack wound ...
    • Toolbox Release Notes | Build 24.1.1001.641

      The following release notes apply to Toolbox build 24.1.1001.641 HBore Toolfile Fix Fig. 1: The location in the Toolfile UI where the error would occur. There was an issue reported with the functionality of the Horizontal Boring Machine setting in ...