Functions
The Bookmark and Refresh API contains the following functions, which are part of the voltmx.application Namespace.
voltmx.application.addBMState
This API adds a specified key and value to the parameter list of the URL of the form.
Syntax
Input Parameters
Parameter | Description |
---|---|
formID [String] - Mandatory. | Identifier of the form to be bookmarked. |
key [String] - Mandatory | Key string representing the LHS of the parameter. |
value [String] - Mandatory | Value string representing the RHS of the key-value combination. The value can not be a nested structure. |
Example
Return Values
None.
Platform Availability
Supported for SPA and Desktop Web.
voltmx.application.getBMState
This API retrieves the list of parameters attached to a URL using the above add, set APIs.
Syntax
Input Parameters
Parameter | Description |
---|---|
formID [String] - Mandatory. | Identifier of the form for which the parameters of the URL have to be fetched. |
Example
Return Values
A JSON structure representing key-values of various parameters attached to the URL string of the given form.
Platform Availability
Supported for SPA and Desktop Web.
voltmx.application.removeBMState
This API removes a specified key from the parameter list of the URL of the form.
Syntax
Input Parameters
Parameter | Description |
---|---|
formID [String] - Mandatory. | Identifier of the form for which the parameters of the URL have to be removed. |
key [String] - Mandatory | Key string representing the key to be removed. |
Example
To remove a bookmark for a URL, enter the following:
Return Values
None
Platform Availability
Supported for SPA and Desktop Web.
voltmx.application.resetBMState
This API resets the state associated with the URL of a form. It removes all the parameters attached to the form URL
Syntax
Input Parameters
Parameter | Description |
---|---|
formID [String] - Mandatory. | Identifier of the form for which the parameters of the URL have to be removed. |
Example
Return Values
None
Platform Availability
Supported for SPA and Desktop Web.
voltmx.application.setBMState
This API sets the bookmark state to the URL. This API accepts the formID and a json structure of key value pairs which will be added to the URL of the page.
Syntax
Input Parameters
Parameter | Description |
---|---|
formID [String] - Mandatory | Identifier of the form to be bookmarked. |
state [JSON Object] - Mandatory | A JSON object comprising key value pairs. The key value pairs are user defined. You cannot specify this as a nested structure. i.e the value part can not be another JSON object. |
Example
Return Values
None
Platform Availability
Supported for SPA and Desktop Web.