Using Render Events on Group Header Bands in Report Designer

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 regards to Groups.

Just like with a Data band, the Group Header band has three specific rendering events available. While Rendering Events are applied to individual Data Rows when assigned to the Data band, when assigned to the Group Header band, the events are applied to groups.

To access these events, select the Group Header band and select the Events button  at the top of the Properties window. 


Fig. 01 – Render Events

  1. Begin Render Event
The Begin Render Event is called at the beginning of a new group being output. This event can be used for the initialization of data or variables, or for calling certain actions.
  1. End Render Event
The End Render Event is called after the group is rendered. Data processing and the calculation of totals are usually performed in the handler of this event.
  1. Rendering Event
The Rendering Event is called when the report generator is rendering one data row from a group.

The following tutorial provides an example for working with these events:

  1. Create the “counter” variable in the Data Dictionary.
    1. Select the Page tab > select Panels > select Dictionary.

    2. Fig. 02 – Dictionary

    3. Select New Item > New Variable.

    4. Fig. 03 – New Variable

    5. From the New Variable window, create a new int type variable named “counter.” Assign it a value of “0.” See Figure 04.

    6. Fig. 04 – New Variable Dialog

  2. Close the Dictionary Window > select the Group Header band for the event to be applied to > select the Events tab > write the following code in the Begin Render Event:
  3. counter = counter + 1

    Fig. 05 – Render Events

    The counter variable increases by one each time a new group is rendered. The report in this example is grouped by materials, so counter is keeping track of the number of materials in the report.

  4. Enter the following expression into a Text Component where you want the counter value to be displayed:
  5. {counter}

    Fig. 06 – “counter” Text Component

    This has been entered into the standard Footer band for the entire report. 
  6. Process the report. The results should look something like Figure 07. 

  7. Fig. 07 – Report Example

    • Related Articles

    • Using Render Events on Data Bands in Report Designer

      The articles in this section of the Knowledge Base involve working with Lists for display in your reports. To learn more about Lists and how to access the Report Designer, see Creating Lists in Report Designer. This article provides information on ...
    • Using the Column Header Band in Report Designer

      The articles in this section of the Knowledge Base involve working with Columns for display in multi-column reports. To learn more about Columns and how to access the Report Designer, see Creating Multi-Column Reports in Report Designer. This article ...
    • Understanding Report Bands in Report Designer

      The articles in this section of the Knowledge Base involve working with Report Bands 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 ...
    • 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 ...
    • 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 ...
    • 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, ...