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
- 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.
- 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.
- 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:
- Create the “counter” variable in the Data Dictionary.
- Select the Page tab > select Panels > select Dictionary.
Fig. 02 – Dictionary
- Select New Item > New Variable.
Fig. 03 – New Variable
- From the New Variable window, create a new int type variable named “counter.” Assign it a value of “0.” See Figure 04.
Fig. 04 – New Variable Dialog
- 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:
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.
- Enter the following expression into a Text Component where you want the counter value to be displayed:
{counter}
Fig. 06 – “counter” Text Component
This has been entered into the standard
Footer band for the entire report.
- Process the report. The results should look something like Figure 07.
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.0213.641
The following release notes apply to Toolbox build 25.1.0213.641. Stay Down Nesting Additions 3 new settings have been added to Stay Down Nesting, to resolve specific issues with routes and connectors that have been reported: Fig. 1: New options in ...
Toolbox Release Notes: Year of 2024
This document will catalog all releases for Microvellum Toolbox software builds that were released in the year 2024. This encompasses builds 24.1.0104.641 to 24.1.1206.641. Toolbox Release Notes | Build 24.1.1206.641 The following release notes apply ...
Toolbox Release Notes | Build 25.1.0129.641
The following release notes apply to Toolbox build 25.1.0129.641. SMA Fixes A wide variety of issues with the Solid Model Analyzer have been resolved. Multiple modifications to existing interfaces or settings have been made to improve precision and ...
Microvellum Foundation Library Release Notes | Build 25.0124
The following release notes apply to Microvellum Foundation Library build 25.0124. Additions Added Century Components Waste Bins, Vanity Organizers, and Base Cabinet Organizers. 11”, 14”, 17” Signature Series Bottom Mount 34qt & 50qt. 4”, 5”, 6”, 9”, ...
SQL Server Backups
This article will list out the various types of backups you can create for databases hosted on an SQL Server, explore methods for creating backups manually and automatically, as well as list software/services that may assist you with backing up your ...