Mobile State APIs

The following APIs enable you to retrieve from or insert data into a state:

getRecordFromState()

Use this method to get the entire dataRecord object from a state.

Parameters

  • None

Returns

  • The dataRecord object that is stored in the state

setRecordInState(dataRecord)

Sets the dataRecord object for a state.

Parameters

  • dataRecord {Object}[required] – The dataRecord object you want to add to a state

Returns

  • void

Example

            mobile.setRecordInState({"sublistNames": [], "sublists": {}, "auxParams": { "recordLink": "", "Config_DropDown": { "label": 1, "value": 1 }, "Config_DropDown_1": { "value": 3, "label": 3 }, "UOM1_EnterItemID": "7" }, "scriptParams": {}, "process": { "name": "ConfigurationTest" } }) 

          

Related Topics

General Notices