Edit a customer record
Steps
Create a jig to edit data
Add a datasource and form
datasources:
customerInfo:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_DYNAMIC
entities:
- default/customers
query: SELECT id, '$.firstName', '$.lastName', '$.email' FROM [default/customers] WHERE id = @custId
queryParameters:
custId: [email protected]
isDocument: true
children:
- type: component.form
instanceId: editCustomer
options:
children:
- type: component.field-row
options:
children:
- type: component.text-field
instanceId: firstName
options:
label: First Name
initialValue: [email protected]
- type: component.text-field
instanceId: lastName
options:
label: Last Name
initialValue: [email protected]
- type: component.text-field
instanceId: email
options:
label: Email
initialValue: [email protected] Add the submit-form action to save the data
Last updated
Was this helpful?