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

    • 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 ...
    • 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 ...
    • 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 25.1.1204.641

      The following release notes apply to Toolbox build 25.1.1204.641 Toolbox Login Screen Update Fig. 1: The updated Toolbox Login interface. The Toolbox Login interface has had several changes applied to it to enhance its usability and allow for greater ...
    • Toolbox Release Notes | Build 25.1.1120.641

      The following release notes apply to Toolbox build 25.1.1120.641 Mouse Wheel Fix There was a reported issue in certain interfaces (such as report groups) in which hovering over a dropdown menu (such as Output Type) would result in the options within ...
    • Dynamic Dimensioning in Toolbox BSB

      When applying dimensions to products and other solids in Toolbox BSB, by default, all dimensions are drawn in 2D on the Y plane, requiring one to switch to a top view (or an appropriately high isometric view) to see them. BricsCAD has a feature that ...
    • Toolbox Release Notes | Build 25.1.1107.641

      The following release notes apply to Toolbox build 25.1.1107.641. Subassembly Prompt Fixes A pair of issues were reportedly occurring when attempting to work with subassembly prompts in the Edit Design Data interface. Subassemblies copied to the ...
    • Microvellum Foundation Library Release Notes | Build 25.1024

      The following release notes apply to the Microvellum Foundation Library build 25.1024. Additions Added Face Profile Options to the Door Wizard for enhanced design flexibility. Users can now apply decorative visual profiles to doors, drawer fronts, ...