Page Parameters
getAllParameters()
To retrieve all parameters and their values on the page, use the
getAllParameters()
method.
Syntax
Return
Returns an object.
Example output
Example scenario
In the context of an employee details page, these methods allow us to retrieve the value of the employee’s ID input parameter. We can then use this value to make API calls or fetch specific details about the employee.
getParameter()
To retrieve one of page parameter’s value.
Parameters
Parameters | type |
---|---|
parameterId | String |
Syntax
Return
Value of single page’s input parameter