Page.Run(Integer [, Record] [, Any]) Method

Version: Available or changed with runtime version 1.0.

Creates and launches a page that you specify. You can use CLEAR method to remove the page.

Syntax

 Page.Run(Number: Integer [, Record: Record] [, Field: Any])

Parameters

Number
 Type: Integer
The number of the page that you want to run. If you enter zero (0), the system displays the default lookup window for the current page. If the page you specify does not exist, a run-time error occurs.

[Optional] Record
 Type: Record
The record last displayed on the page. For each object, the system stores information about the most recently displayed 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 attached to the window. When the record is displayed, the key and filters attached to the record are used.

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

See Also

Page Data Type
Get Started with AL
Developing Extensions