편집

다음을 통해 공유


OnPreReport (Report) trigger

Version: Available or changed with runtime version 1.0.

Runs before a report is run.

Syntax

trigger OnPreReport()
begin
    ...
end;

Remarks

This trigger runs after the request page is run. The table views and filters for the report data items are set while this trigger is run. As this trigger is run 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.

Get Started with AL
Developing Extensions
OnPreReport (Report Extension) Trigger
Report Triggers and Runtime Operations