Reusing data records
Add a data reference list to your data model to refer to data records for a data object.
-
Access the data model for a data object.
- In the navigation panel of Dev Studio, click Data to display the Data Explorer.
- Click the name of a data type.
- Click the Data model tab.
- 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 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.
- Click the Configure field 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.
- Click Save.