Deleting Dynamic Data

With the ability to create and update data, you must be able to delete data that is no longer needed. This example shows how to delete a single row of data and then how to delete multiple rows of data from a jig.

Datasources, jigs, component & actions

  1. default.jigx is the database where the Dynamic Data table is defined.

  2. sqlite datasource calls the Dynamic Data provider, using an SQL query to return the data.

  3. jig.list is the type of jig used to list the data with a swipeable: left action that uses the Dynamic Data provider's delete method.

Examples and code snippets

Delete a single data record using execute-entity

Deleting Dynamic Data
Deleting Dynamic Data
Record deleted from table
Record deleted from table

Deleting multiple data records using execute-entities

To delete all employees (multiple data records) in the Dynamic Data table use the action.execute-entities action with an expression that as shown below. This will delete all records in the table when the Delete all employees button is pressed.

Delete multiple records
Delete multiple records
All records deleted from table
All records deleted from table

Last updated

Was this helpful?