9 Add New Data

You can configure an integrated workbook so that a business user adds new rows in a Table layout.

For the user of the integrated workbook that you develop, the following options are available to add new data rows to the Table layout:

  • The Insert Rows option in the add-in’s Table Row Changes menu, or Excel’s Insert option. See Create New Rows to Upload to the REST Service.
  • The Create Child Rows option in the add-in’s Table Row Changes menu

    Using this option, the add-in launches a wizard to help create new child rows in a child layout for the parent rows selected in the parent layout. See Create New Rows for a Set of Dependent Layouts.

  • The Create Rows from Data Source option in the add-in’s Table Row Changes menu

    Use of this option requires version 4.6 and later of the add-in. The add-in fetches data from a specially-designated data source (different than the one used for Download) and appends new rows to the Table layout. You can’t use this option in an Action Table layout or use a child business object as the data source.

Create Rows from Data Source

You can configure Create Rows from Data Source for a Table layout.

When a business user clicks the Create Rows from Data Source option in the add-in’s Table Row Changes menu, the add-in fetches data from a configured data source, uses part or all of it as initial values of new rows, and appends those rows to the Table layout. The appended rows are pending Create rows that can be reviewed, edited, and later uploaded.

For example, you have two layouts in your workbook: Departments (Table) and Employees (Table). You wish to use data rows from another business object (the data source business object), Candidates, as initial values for a set of pending Create rows in Employees table. You configure Create Rows from Data Source for the Employees table (the target table).

To configure Create Rows from Data Source:

  1. Make sure the data source business object is added to the same business object catalog as the target table.

    Note:

    If you need to add the source business object to your catalog, see Add Business Objects to an Existing Catalog.
  2. Open Layout Designer, go to the Advanced tab, under Create Options, find Create Rows from Data Source.

    This property is visible only when Create Enabled is checked under Table Capabilities.


    Create Rows from Data Source Table Layout

    Note:

    For a Form-over-Table layout, the property applies to the table under the form.

    Form-over-Table Layout's Create Rows from Data Source

  3. To open the Create Rows from Data Source Editor, click the Edit icon (Edit icon).

    Create Rows from Data Source Editor, General tab

  4. Select the Enabled check box.
  5. Click the Choose a Data Source icon (Choose a Data Source) next to the Data Source field, then pick an appropriate data source from the Choose a Data Source window.
  6. Configure Search, Row Finder, and Download Parameters as needed.

    These are applied to the data source (not the target table) when downloading data. See Configure Search Options for Download.

  7. Click the Fields tab to configure field mappings.
    Each field mapping has a source field from the data source and a target column in the target table. The data from the source field is used as the initial value of the target column.
    Create Rows from Data Source Editor, Fields tab

    The add-in automatically finds field mappings based on field IDs once a data source is picked.

  8. Click the Add Field Mapping icon (Add Field Mapping) or Remove Field Mapping icon (Remove Field Mapping) to add or remove selected field mapping as needed.

The following fields are not supported as field mapping source fields:

  • Polymorphic fields
  • Fields with Object as Data Type (including subfields)
  • Fields with unsupported Data Type

These fields are not supported as field mapping target column fields:

  • Hidden fields
  • Custom action payload fields
  • Row variables
  • Polymorphic fields
  • Fields with Object as Data Type (including subfields)
  • Fields with unsupported Data Type