Reusing data records

Add a data reference list to your data model to refer to data records for a data object.

  1. Access the data model for a data object.
    1. In the navigation panel of Dev Studio, click Data to display the Data Explorer.
    2. Click the name of a data type.
    3. Click the Data model tab.
  2. Click + Add field.
  3. In the Name column, enter a label for the field. You can modify the identifier that is automatically generated in the ID column.
  4. In the Type column, select Data reference (list) from the list of options.
  5. In the Options column, press the Down Arrow key and select a data object that has data records defined.
    Alternatively, you can create a new data type by clicking New but you must also create a corresponding data page for this data type.
  6. Click the Configure field icon in the row of the data reference list.
  7. In the Edit options dialog box, define how the data reference list is populated.
    • To populate the data reference list with data records from a single data page, follow these steps to display a list of read-only fields at run time. For example, you can prompt users to select an office name from the data reference list when they schedule an appointment.
      1. In the Data to reference list, select A list.
      2. In the Data Page field, press the Down Arrow key and select a data page that contains data records.
      3. Click Submit.
    • To populate the data reference list with data pages, follow these steps to display a list of autocomplete fields at run time. For example, you can prompt users to create a list of products to purchase by selecting inventory items from the data reference list.
      1. In the Data to reference list, select An item.
      2. In the Data Page field, press the Down Arrow key and select a data page that contains data records.
      3. Click Submit.
  8. Click Save.