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.