Data Providers
Dynamic Data

Deleting Dynamic Data

5min

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 .

Datasources, jigs, component & actions

  1. default.jigx is the database where the table is defined.
  2. sqlite datasource calls the provider, using an SQL query to return the data.
  3. jig.list is the type of used to list the data with a swipeable: left action that uses the 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

delete-single-record.jigx
default.jigx
index.jigx


Deleting multiple data records using execute-entities

To delete all employees (multiple data records) in the 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

delete-multiple-records.jigx
default.jigx
index.jigx