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