OnOpenPage (Page) Trigger
Version: Available or changed with runtime version 1.0.
Runs after a page is initialized and run.
trigger OnOpenPage() begin ... end;
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.
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.
The OnOpenPage trigger does not support calls to control add-in methods and properties because the trigger is invoked before the page is instantiated.