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
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.
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" );
getControlsByNodeName(…sNodeName) → {Array.<Control>}
Get controls by node name. Note: Only named specification nodes will be found.
Name | Type | Attributes | Description |
---|---|---|---|
sNodeName | String | <repeatable> | The node name of the control. Multiple node names can be passed as separate parameters. |
- Since
All controls with the matching node name(s) on the page. If no controls are found, an empty array is returned.
- Type:
- Array.<Control>
const aControls = oPage.getControlsByNodeName( "selectValue" );
const aControls = oPage.getControlsByNodeName( "list", "crosstab", "table" );