insert
Description
Inserts rows of data into a dataset.
Input / Parameter
dataset
The name of the dataset that is created in Services.
Text
-
-
Yes
data
Multiple dynamic attributes with values associated with each attribute.
Object
-
-
Yes
extra
The stored value that is passed to all the callbacks.
Any
-
-
No
Output
Returns the formatted information.
Object
Object
success
Boolean value to denote whether the function was executed successfully.
Text
message
The message to print.
Text
data
Any additional message or data to print.
Text
Callback
callback
The action performed if this function runs successfully.
Returns the newly created data.
Object
errorCallback
The action performed if this function does not run successfully.
Returns an error message.
Text
Example
In this example, we will insert rows of data into a table in the local storage.
Steps
Drag a
Local Tablecomponent into the services panel in the service page and then fill the fields. Forfieldsfield value addnameandtitleas object key with Text type.
Drag a button component to a page in the mobile designer.

Select the event
pressand drag theDataset.insertfunction to the event flow and fill in the parameter. For thedataparameter, change it's type to a function / subflow and putConversion.toObjectinside it then addname,titleas object key withname_value,title_valueas it's value respectively.
Result
The new rows of data should be stored on local storage.
Last updated