GetPage function
Syntax
GetPage(PAGE.pagename)
Description
Use the GetPage function to return a reference to a page object. Generally, page objects are used to hide or unhide pages in a component.
Generally, the PeopleCode used to manipulate a page object would be associated with PeopleCode in the Activate event.
Note:
The page object shouldn’t be used until after the Component Processor has loaded the page: that is, don’t instantiate this object in RowInit PeopleCode, use it in PostBuild or Activate instead.
Parameters
| Parameter | Description |
|---|---|
|
PAGE. pagename |
The name of the page for which you want to create an object reference. Must be a page in the current context. |
Returns
A page object that references the page.
Example
In the following example, a page is hidden based on the value of the current field.
If PAYROLE_TYPE = "Global" Then
GetPage(PAGE.JOB_EARNINGS).Visible = False;
End-If;
Note
An expression of the form
PAGE.name.property
is equivalent to GetPage(name).property.