OnOpenPage Trigger

Executed after a page is initialized and run.

OnOpenPage()

Applies To

  • Pages

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.

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

Note

If you use the LOCKTABLE Function (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. For more information see, Exposing Methods and Properties in a Windows Client Control Add-in.