insert
Last updated
Inserts rows of data into a dataset.
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
Returns the formatted information.
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
The action performed if this function runs successfully.
Returns the newly created data.
Object
The action performed if this function does not run successfully.
Returns an error message.
Text
In this example, we will insert rows of data into a table in the local storage.
Drag a Local Table component into the services panel in the service page and then fill the fields. For fields field value add nameand title as object key with Text type.

Drag a button component to a page in the mobile designer.
Select the event press and drag the Dataset.insert function to the event flow and fill in the parameter. For the data parameter, change it's type to a function / subflow and put Conversion.toObject inside it then add name, title as object key with name_value, title_value as it's value respectively.

The new rows of data should be stored on local storage.
Last updated