Editar

Partilhar via


OnOpenPage (Request Page Extension) trigger

Version: Available or changed with runtime version 7.0.

Runs after a request page is initialized and run.

Syntax

trigger OnOpenPage()
begin
    ...
end;

Remarks

This trigger is executed after the OnInit Trigger.

You use the OnOpenPage trigger to change dynamic properties, including those which can only be changed when the page is opened, such as the Visible Property. You can also write to the database from the trigger.

The OnOpenPage trigger is the only trigger that can toggle the Visible Property and the property can only be toggled on columns.

If an error occurs in the trigger execution, then the page closes.

Note

If you use the LockTable Record in the OnOpenPage trigger, then the table lock will be released when the trigger completes execution and not when the user closes the page.

Note

The OnOpenPage trigger does not support calls to control add-in methods and properties because the trigger is invoked before the page is instantiated.

Get Started with AL
Developing Extensions
OnOpenPage (Page) Trigger
OnOpenPage (Request Page) Trigger
OnOpenPage (Page Extension) Trigger