Adding a data reference list to your data model
Add a data reference list to your data model to refer to data records for a data type.
-
Access the data model for a data type or a case type, based on how the field will be
used in your application.
- To view fields in a data type:
- In the explorer panel of Designer Studio, click Data to display the Data Explorer.
- Click the name of a data type.
- Click the Data model tab.
- To view fields in a case type:
- In the explorer panel of Designer Studio, click Cases to display the Case Type Explorer.
- Click the name of a case type.
- Click the Data model tab.
- Optional:To display fields that are inherited by your application, click Show reusable fields.
- To view fields in a data type:
- Click + Add field.
- In the Name column, enter a label for the field. You can modify the identifier that is automatically generated in the ID column.
- In the Type column, select Data reference (list) from the list of options.
- In the Options column, press the Down Arrow key and select a data type 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.
- Click the Gear icon in the row of the data reference list.
-
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.
- In the Data to reference list, select A list.
- In the Data Page field, press the Down Arrow key and select a data page that contains data records.
- 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.
- In the Data to reference list, select An item.
- In the Data Page field, press the Down Arrow key and select a data page that contains data records.
- Click Submit.
- 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.
- If you are updating the data model for a case type, click Save.