Data Providers
Dynamic Data

Creating Dynamic Data

5min

Creating can be achieved in several ways, one of which is by using a form. In this example, we will demonstrate how to create a new employee form that will create the employee table, columns, and data record in the database when the form is submitted.

Data provider, jig, component & action

  1. default.jigx is the database where the table is defined.
  2. jig.default is the type of we will use to contain the form.
  3. form is the component used with text and date fields.
  4. submit-form is the action that executes the create method of the provider

Examples and code snippets

Form creating Dynamic Data
Form creating Dynamic Data

Dynamic data database
Dynamic data database


Create the table

In under the databases folder in the default.jigx file the employee table is added. This will create the table in .

default.jigx


Create the , form and action

The code example below is for the jig.default with the component.form that uses componet.text and component.date-picker to create the fields on the form. The action.submit-form executes the DATA_PROVIDER_DYNAMIC that uses the save/create method to create columns and data records.

new-employee-form.jigx
index.jigx


View the in 

  1. Open Management , navigate to your solution (employees).
  2. Navigate to Data option
  3. Click on the employee table and view the data record you just created.