Page.ObjectId([Boolean]) Method

Version: Available or changed with runtime version 1.0.

Returns a string in the "Page xxx" format, where xxx is the caption or ID of the application object.

Syntax

String :=   Page.ObjectId([UseNames: Boolean])

Parameters

Page
 Type: Page
An instance of the Page data type.

[Optional] UseNames
 Type: Boolean
If true, the page caption is returned, else the page ID as text.

Return Value

String
 Type: String
The text of the object

Example

If you add the following code to a page method or trigger, then the returned string is displayed in a message window.

Message(CurrPage.ObjectId(true));  
  

CurrPage is a system-defined variable. For more information, see System-Defined Variables.

See Also

Page Data Type
Getting Started with AL
Developing Extensions