Muokkaa

Jaa


Page.RunModal(Integer, Record, Integer) Method

Version: Available or changed with runtime version 1.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, FieldNo: Integer)

Parameters

Number
 Type: Integer
The number of the page that you want to run.

Record
 Type: Record
By default, this method 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.

FieldNo
 Type: Integer
Use this optional 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.

Page Data Type
Get Started with AL
Developing Extensions