Report and Data Item Triggers
In reports, triggers are typically used to perform calculations and verification. Triggers let you control how data is selected and retrieved in a more complex and effective way than you can achieve by using properties.
The following table lists triggers that apply to the report itself.
|OnInitReport Trigger||When the report is loaded.|
|OnPreReport Trigger||Before the report is run, but after the RequestPage has been run.|
|OnPostReport Trigger||After the report has run, but not if the report was stopped manually or by the QUIT Function (Report, XMLport).|
Data Item Triggers
The following table lists triggers that apply to each data item on the report.
|OnPreDataItem Trigger||Before the data item is processed, but after the associated variable has been initialized.|
|OnAfterGetRecord (Data Items) Trigger||When a record has been retrieved from the table.|
|OnPostDataItem Trigger||When the data item has been iterated for the last time.|