Data Providers
Dynamic Data
Updating Dynamic Data
4min
The employee's details are updated using the 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 table.
- form is the component used with intialValue properties to populate the employee data into the form fields.
- submit-form is the action that executes the update method of the provider with the recordId property configured to identify the record in the table that must be updated
Update Dynamic Data record
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 provider with the update method to update the data record.
The record is updated intstantly and the new employee details are shown in the list
Updated Dynamic Data record
Updated 24 Nov 2023
Did this page help you?