Redigera

Dela via


Page.RunModal(Integer [, Record] [, Any]) 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] [, Field: Any])

Parameters

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

[Optional] 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.

[Optional] Field
 Type: Any
Use this optional parameter to select a specific field which will be in focus.

Return Value

[Optional] Action
 Type: Action
Specifies what action the user took on the page.

Page Data Type
Get Started with AL
Developing Extensions