Updating Dynamic Data
The employee's details are updated using the Dynamic Data provider's update method in this example. The same employee list (Reading Dynamic Data) is used to select the employee and then populate the employee form (Creating Dynamic Data) with the employee's existing details. Edit the required details and update the record in the Dynamic Data table.
Datasources, jigs, components & actions
default.jigx is the database where the Dynamic Data table is defined.
sqlite datasource calls the Dynamic Data provider, using an SQL query to return the data.
form is the component used with
initialValueproperties to populate the employee data into the form fields.submit-form is the action that executes the update method of the Dynamic Dataprovider with the
recordIdproperty configured to identify the record in the table that must be updated
Examples and code snippets

Use the employee list with component.expanders add the onContentPress action that will open the employee form, add parameters to transfer the employee details to the form.
In the pre-populate Update Employee form add the action.submit-form using the Dynamic Data provider with the update method to update the data record.
Navigate to the solution's Data option in Jigx Management and view the updated Dynamic Data employee table and record.

Last updated
Was this helpful?