Creating columns & data records
There are three methods to create columns in Dynamic Data tables, and it all depends on where your data comes from if it is pre-existing or new data to be added while the app is in use.
Create a jig in Jigx Builder with the columns and save data to your table.
Create your columns and data manually in Jigx Management.
Import your data from a CSV or JSON file using the Jigx Management.
Jigx does not recommend storing images in Dynamic Data (via any conversion), as the max file size per record is 350K.
Creating columns and records via Jigx Builder
You can create columns in the table by creating a jig, then define the columns you require in the table by using the Dynamic Data provider's create or save method. Here are scenarios commonly used to create columns and data from a jig.
Create a form and use the submit form action
In this scenario, the formId in the component.form is used in the submit-form action to get context to the property instanceId. Each value used in the instanceId becomes the column's name in the table. The entity property specifies the table to add the columns and data to.

Add a
component.formto a jig and give it aformId.Add any of the available form properties, such as text-field, date-picker, number-field.
Add the
submit.formaction.Specify the same
formIdused in thecomponent.form.Use the
DATA_PROVIDER_DYNAMICwith thecreateorsavemethod.In the
entityproperty, specify the table where the columns and data must be added.Publish the solution.
Open the solution in Jigx App and complete the form, click the submit button.
Browse to Jigx Management> solution >data> table to see the new record and columns.
title: New employee form
description: Capture the new employee details
type: jig.default
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: https://unsplash.com/photos/black-smartphone-LNlzd-Y7orw
children:
- type: component.form
# used in the submit-form action to get context to the property instanceId.
options:
instanceId: form-employee
children:
- type: component.text-field
instanceId: first_name # becomes the name of the column in table
options:
label: First Name
- type: component.text-field
instanceId: last_name # becomes the name of the column in table
options:
label: Last Name
- type: component.number-field
instanceId: contact_number # becomes the name of the column in table
options:
label: Mobile number
- type: component.date-picker
instanceId: date_of_birth # becomes the name of the column in table
options:
label: Date of birth
- type: component.avatar-field
instanceId: photo # becomes the name of the column in table
options:
label: My profile
- type: component.signature-field
instanceId: signature # becomes the name of the column in table
options:
label: Sign
- type: component.email-field
instanceId: email # becomes the name of the column in table
options:
label: Email address
actions:
- children:
- type: action.submit-form
options:
# Used to get context to the property instanceIds.
formId: form-employee
# Dynamic data provider
provider: DATA_PROVIDER_DYNAMIC
# Creates data and the columns if they do not already exist.
title: Create Record
# Specify the table to create the data and columns in.
entity: default/employee
# Use create or save.
method: create
onSuccess:
type: action.go-backUse execute-entity or execute-entities action to create columns and data records
In this scenario you can use actions in a jig that interact with data to add columns and data records. The columns and data are configured in the data: property the action.Use the following actions with the Dynamic Data provider's create and save methods:
action.execute-entity- used to add a single data recordaction.execute.entities- used to add multiple data
type: action.execute-entity
options:
provider: DATA_PROVIDER_DYNAMIC
entity: default/department
method: create
data:
department_name: [email protected]
manager_name: [email protected]
email: [email protected]_contacts.emailtype: action.execute-entities
options:
provider: DATA_PROVIDER_DYNAMIC
entity: default/department
method: create
data:
department_name: [email protected]
manager_name: [email protected]
email: [email protected]_contacts.emailCreating columns in Jigx Management
Manually create columns and data records

Open Jigx Management, navigate to your solution and select the Data option.
Click on the table you want to add a record to in the right-hand Tables pane.
Click on the blue New record button. If you already have records in the table, you will see all existing columns of all records.
In the New record pane add the data values for each column.
Add new columns to your record by defining a column name and clicking on the + button next to the new column name. As you add data in the column the field displays the type under the entry, such as number, string or boolean.
Enter data values in the column fields and click Save.
Importing data using a JSON or CSV file
If you have pre-existing data or a large data set with multiple records to add to a table you can import the data by uploading a CSV or JSON file that will create the columns and populate the data records.

Open Jigx Management, navigate to your solution and select the Data option.
Click on the table you want to add a record to in the right-hand Tables pane.
Click on the Upload button at the top of the screen.
By default the JSON upload window is shown. You can toggle to upload CSV using the Switch to CSV button in the top right. Provide the property name for the unique identifier, otherwise by default the rid (GUID based id) property will automatically be created for you. Drag and drop the file in the designated area.
Click Save.
For CSV uploads select the type of comma-delimited used in the CSV file. Drag and drop the file in the designated area.
Click Add.
Click Save.
Examples and code snippets
The following examples with code snippets are provided:
See Also
Last updated
Was this helpful?