Creates, runs, and closes a specified page object. When a page is run modally, no input (keyboard or mouse click) can occur except to objects on the modal page.

[Action :=] Page.RUNMODAL(Number[, Record][, Field])

Parameters

Number

Type: Integer

The number of the page that you want to run. If you enter zero (0), the default lookup window for the current page is displayed. Click View and then click C/AL Symbols Menu to select the page from a list.

If the page you specify does not exist, a run-time error occurs.

Record

Type: Record

This function shows, by default, the record last displayed on the page. For each object, the system stores information 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 attached to the page. When the record is displayed, the key and filters attached to the record are used.

Field

Type: Field

Use this optional parameter to select a specific field on which focus will be placed.

Expand imageProperty Value/Return Value

Expand imageRemarks

Expand imageExample

Expand imageSee Also