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.


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


 Type: Page
An instance of the Page data type.

[Optional] UseNames
 Type: Boolean
true returns the page caption, if there is one; otherwise, it returns the page name. false returns the page ID as text.

Return Value

 Type: Text
The text of the object


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


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

See Also

Page Data Type
Get Started with AL
Developing Extensions