In reports, triggers are typically used to perform calculations and to control whether to output sections. Triggers allow you to control how data is selected and retrieved in a more complex and effective way than you can achieve by using properties.
Report Triggers
The following table lists triggers that apply to the report itself.
Trigger | Executed |
---|---|
When the report is loaded. |
|
Before the report is run, but after the RequestForm has been run. |
|
After the report has run, but not if the report was stopped manually or by the Break function. |
|
After the user creates a URL to a form or a report. |
|
After the OnInitReport Trigger is executed for a report. The trigger executes a URL string. |
Data Item Triggers
The following table lists triggers that apply to each data item on the report.
Trigger | Executed |
---|---|
Before the data item is processed, but after the associated variable has been initialized. |
|
When a record has been retrieved from the table. |
|
When the data item has been iterated for the last time. |
Section Triggers
The following table lists triggers that apply to each of the sections of a data item.
Triggers | Executed |
---|---|
Before processing a section. |
|
After processing a section but before printing it. |