Skip to main content
Version: 4.0

This section uses the following table as an example to demonstrate the creation of form model.

Creating Form Template

  1. Log in to supOS, and then click to go to the design center.
  2. Select Object Model Management > Object Template > Form Template, and add a new form template.
  3. Enter the template name, and then click Save.
  4. On the Attribute tab, click New to add attributes including ID, product, workshop, date and amout with correct data type and unique alias.

Creating Form Instance

  1. On Object Instance page, select the created form template, and then click New to add an instance.
  2. Click Save.
  3. Click Attribute to add rows of data to the form.
    1. Click New to add a row.
    2. Click next to an attribute inherited from the parent template, and enter a value.
    3. Do the same to all attributes, add values from the example table to add a row of data.

Adding Data in Batches

  1. Select the form template, and then click the Service tab.
  2. Click New, enter required information and set the Type under Information Output to JSON.
  3. Click Script, and then click Object Selector to select the embedded server addDataTableEntries to add table data in batches.
  4. Select the current template, under Service, select addDataTableEntries and then click OK to load the code example.
  5. Change the input parameters.
    tip

    Go back to the Service page, and copy the input parameter format by clicking the service under Other Service.

  6. Click Debugging after finishing the code. Data is added when the debugging result is true.