The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

OnPreReport Trigger

Executed before a report is run.

Applies To



This trigger executes after the request page is run. The table views and filters for the report data items are set while this trigger is executed. As this trigger is executed after the request page is processed, you have access to any filters the user has set. If you want to print the settings of these filters in the report, you can retrieve them using the following text string.

ReportFilter := SomeRecord.GETFILTERS;  

Use the ReportFilter text string as the source expression for a control in a section of the report.

See Also

GETFILTERS Method Record)
Report and Data Item Triggers