Page.RunModal(Integer, Record, FieldRef) Method
Version: Available or changed with runtime version 3.0.
Creates, opens, and closes a page that you specify. When a page is run modally, no input, such as a keyboard or mouse click, can occur except for objects on the modal page.
Syntax
[Action := ] Page.RunModal(Number: Integer, Record: Record, FieldRef: FieldRef)
Parameters
Number
Type: Integer
The number of the page that you want to run.
Record
Type: Record
By default, this function shows the record that was last displayed on the page. For each object, information is stored about the most recently shown record and the attached key and filters. Use this optional parameter to select a specific record to display on the page. The record must be of the same type as the table that is attached to the page. When the record is displayed, the key and filters that are attached to the record are used.
FieldRef
Type: FieldRef
Use this parameter to select a specific field on which focus will be put.
Return Value
[Optional] Action
Type: Action
Specifies what action the user took on the page.