JavaScript

{dialog.object}.persistVariablesToLocalStorage Method

Syntax

{dialog.object}.persistVariablesToLocalStorage([variables]);

Arguments

variablesJSON Object

A JSON Object containing variables to persist to local storage in addition to the values stored in controls in the UX Component. Can have the following properties:

userDataJSON Object

A JSON Object containing data to persist to local storage.

Description

Manually persist List data and state to Local Storage (assuming the List properties have been set to allow persistence to Local Storage). Normally this method is not needed because the List is automatically persisted to Local Storage any time the List contents is changed (by adding, deleting or editing data in the List).

Example

var data = {};
data.userData = [];
data.userData.push({"value1":1});
data.userData.push({"value2":2});
data.userData.push({"value3":[1,2,3]});

{dialog.object}.persistVariablesToLocalStorage(data);

See Also