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.
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.
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.
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:
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.