Actions

execute-entities

8min

Execute-entities is used to modify, create, and delete multiple rows in a specific table in a database.

Execute-entities can't be used if you're using Static Data.

Configuration options

An execute-entities action can be used in multiple areas:

  1. Under action button
  2. In action list
  3. In onPress/onChange events (if the component has these options)
  4. In onRefresh/onFocus

Reference data properties and values as a group

With the execute-entities action, you can reference data properties and values as a group instead of listing them individually to be saved or created. See the data-grouped example below:

data-grouped
data-individual-listed


Offline remote data handling

Dealing with offline remote data is fundamental to ensuring data synchronization and consistency between the mobile app and the remote data source, allowing users to continue using the app and performing actions without interruption. Offline remote data handling explains how to configure solutions to deal with data when the device is offline using the queueOperations property available in execute-entities, and provides examples and code samples.

Examples and code snippets 

Execute entities
Execute entities


Example: See the full example of execute-entities as an action in GitHub.

execute-entities-action


Example: See the full example of execute-entities in an action list in GitHub.

execute-entities-action-list


Here is the example of execute-entites in onPress/onChange event in list-item.

Execute-entities
Execute-entities


Example:

See the full example of execute-entities in action onPress in GitHub. See the full example of execute-entities in action onChange in GitHub.

onPress
onChange

Execute-entites
Execute-entites


Example:

See the full example of execute-entities in onRefresh in GitHub. See the full example of execute-entities in onFocus in GitHub.

execute-entities-onRefresh
execute-entities-onFocus


To delete multiple data records in a Dynamic data table use the execute entities action with an expression as shown below.

This code example is not in the jigx.samples solution in GitHub.

Example:

Execute-entities-multiple


Updating multiple data records using execute-entities

To update multiple data records in a Dynamic data table use the execute entities action with an expression as shown below.

This code example is not in the jigx.samples solution in GitHub.

Example:

YAML


Updating multiple data records in a single REST call

See Update multiple records in a single REST call for an example of using execute-entities with REST.

Updated 05 Nov 2024
Doc contributor
Did this page help you?