OnInitReport (Report) Trigger

Version: Available or changed with runtime version 1.0.

Runs when the report is loaded.

Syntax

trigger OnInitReport()
begin
    ...
end;

Remarks

This trigger is run before the request page is run and before any table views or filters are set. This trigger performs any processing that is required before the report is run, such as initializing global variables. It can also stop the report.

Note

This trigger is currently not supported for Report Extension Object.

See Also

Get Started with AL
Developing Extensions
Report Triggers and Runtime Operations