Creating fields for capturing data
To decrease application development time and costs, reuse data objects across your application by creating fields that capture data. You can reference data between fields in several ways that help you to efficiently reuse resources without detailed knowledge about how the system stores data.
For example, in an Account data object that stores information that is related to customer accounts, you can create a Contact field to store contact information of a customer. To promote reuse, you can then reference a case type that the Contact field uses as the source of customer contact information.
You can create fields that capture data for the following
interfaces:
- Your case type data model. For more information, see Configuring a data model for a case.
- A form in your case type for applications that do not use Cosmos React. For more information, see Adding single-value fields to forms.
- Your application visual data model. For more information, see Viewing an application data model.
- A data model of a data object. For more information, see Viewing the data model for a data object.
- Navigate to a place where you want to add a field:
Choices Actions Add a field to a case type data model - In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
- On the Data model tab, click Add field.
Add a field to a form in a view of a non-Cosmos React application - 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, in the Case life cycle section, click an assignment or an approval step.
- In the Step properties pane, click Configure view.
- In the dialog box, on the Fields tab, click Add field.
Add a field to an application visual data model - In the navigation pane of App Studio, click Data.
- In the Data model section, click View.
- In the data model, click a data object for which you want to create a data field.
- In the list of fields, click Create new field.
Add a field to a data object - In the navigation pane of App Studio, click Data.
- In the Data objects column, click the data object that you want to open.
- On the Data model tab, click Add field.
- In the field configuration dialog box, for the Field name parameter, enter a unique label for the field.
- In the Type list, select Data reference.
- In the Data object field, select the data object that you want to use as the source.
- In the Options list, define how you want to reuse fields from
the source:
- To create one entry for all the fields from the source, select Single record.
- To create a list of separate entries for the fields from the source, select List of records.
- Optional: To provide additional information about your data field, expand and complete the
Advanced section:
- To provide a different ID than the autogenerated ID, in the ID field, enter a new value.
- To provide additional information about the field, in the Description text box, enter additional details.
- Save your data field:
- To save the field and instantly define another field, click Submit & add another.
- To save your field and return to the configuration view, click Submit.
- For fields that you add to a form, in the Options list, define
the display mode for the field:
- To indicate that users can optionally complete the fields, select Optional.
- To indicate that users need to provide a value in the fields, select Required.
- To indicate that users can only view the fields, select Read-only.
- Click Submit.
Previous topic Referencing a case type Next topic Configuring primary fields