Adding a Dictionary to a Data Model
In addition to the large range of standard fields that the DCM provides for Case, Task, and Party Types, there is also the ability to add new fields of many types. These ‘Custom Fields’ allow a DCM solution to be customized for the unique requirements of each business. For fields that behave as drop-down lists, the Dictionary feature lets you quickly define the various lists of values that a caseworker can use for drop-down field selection.
To add a custom field (or Word) to the DCM solution, a category for that field/word must be created first. Visit the article Adding Dictionaries to learn how to add categories.
Steps
- On the top right, navigate to → <<your solution>>
- On the left, navigate to → Setup
- Navigate to Case Setup → Case Types (1).
- Open the Data Model.
- Add a Dictionary Word to the Business Object from the System Reference Objects list at the left.
- Select the Dictionary object (1), and change the Name. In our example, Employment Type (2).
- Select the Category from the dropdown list (3). In our example, Employment Types. If you don’t see the dictionary, click the refresh whirlpool button.
- Save the changes.
- Check the Status Report and notice that we need to deploy to implement the new relationship with the Dictionary for Employment Type category.
- After deployment finishes without errors, go back to Data Models.
- Open the data model.
- Expand the Business Object fields list and add the Employment Type dictionary field.
- Do a Preview. Check that you can see the options in the Employment Type dropdown list.
- Close the Form Preview
- Save your changes.
- Select the Employment Type field and change the Renderer to Radio Group, and the Position to Horizontal.
- Do a Preview to see how the dictionary values are displayed now.
- Save the changes.