Adding data references to forms
Enhance your case processing by providing users with a list of data records that they can choose from when they complete a form. By using data references, you integrate the data with the cases in your application.
For example, you can reference the Vehicle data object on an accident claim form to display a list of car models.In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
On the Workflow tab, click Life cycle.
In the Case life cycle section, click an assignment or an approval step.
In the Step properties panel, click Configure view.
In the dialog window, click Add field.
In the Field text box, enter a unique name for the field.
In the Type list, select Data reference.
In the Options list, define the display mode for the data reference:
- To indicate that users can optionally complete the field, select Optional.
- To indicate that users need to provide a value in the field, select Required.
- To indicate that users can only view the field, select Read-only.
In the list that appears, select a data object that you want to use.
In the View section, define a view for the data object:
- To reuse a case view, select the name of the view.
- To create a new view, select Create new view, click Open, and then add fields to the view.
- To create a new default view, select Create default view, click Open, and then add fields to the view.
For more information about adding fields, see Adding single-value fields to forms
Configure a method for selecting prompt options by clicking the Change the search fields icon, and then performing one of the following actions:
Choices Actions Provide a search box In the Select record using list, select Search box.
In the Search in the following fields list, select a field that you want to include in the prompts.
- Optional:
To include more fields in the prompts, click Add search field, and then repeat step 11.b.
Click Submit.
Provide a list In the Select record using list, select Drop-down list.
In the Select using the following field list, select a field that you want to use.
A value from this field populates the drop-down list.
Click Submit.
Click Submit.
- Configuring a data reference on a form
After you add a data reference to a form, you can configure the way that it prompts users for input. For example, you can configure the Vehicle data reference to display as a drop-down list of cars or as an autocomplete that returns a list of cars that match the value enter by the user.
- Building forms for case types
You capture user input in a case by building forms. When you create, configure, and organize relevant fields in a form, you can clearly communicate to users the tasks that they need to perform to process an assignment in a case.
- Referencing data from another data object
Create reusable data for your application and build easy to maintain forms by using a data reference.
- Reusing fields on forms
Save time and build forms that are convenient to maintain by referencing fields on other, existing forms. For example, you can reuse a field group to capture different user details on a new form, such as name, surname, mailing address and phone number, instead of creating separate fields for each item.
- Referencing data from another data object
Create reusable data for your application and build easy to maintain forms by using a data reference.
- Adding and configuring a Multi-select list control
You add and configure a Multi-select list control when your application users need the ability to select multiple items for a single field.
Previous topic Adding a field group list to your data model Next topic Configuring a data reference on a form