Members
(readonly) application :Application
The application.
- Since
(readonly) hasBack :Boolean
Whether or not the page supports back navigation. This is useful for implementing custom prompt controls.
- Boolean
Disable a custom back button if back navigation is not possible
btnCustomBackButton.disabled = !oPage.hasBack;
(readonly) name :String
The page name.
- String
(async, readonly) pageModuleInstance :Promise
The PageModule
instance. Since modules are loaded asynchronously, the instance may not be immediately available.
Obtain a reference to a page module instance.
const oModuleInstance = await oPage.pageModuleInstance;
// The module instance is available here
Methods
getAllPromptControls() → {Array.<PromptControl>}
Get all prompt controls.
- Since
All prompt controls on the page. If no prompt controls are found, an empty array is returned.
- Type:
- Array.<PromptControl>
const aControls = oPage.getAllPromptControls();
getControlByName(sName) → (nullable) {Control}
Get a control by name.
Name | Type | Description |
---|---|---|
sName | String | The name of the control. |
The first control found with that name on the page. If no control is found, null is returned.
- Type:
- Control
const oControl = oPage.getControlByName( "SelectValue1" );
getControlsByName(sName) → {Array.<Control>}
Get all controls with a name.
Name | Type | Description |
---|---|---|
sName | String | The name of the control. |
All controls on the page with the name. If no controls are found, an empty array is returned.
- Type:
- Array.<Control>
const aControls = oPage.getControlsByName( "SelectValue1" );