Adding custom fields to views
As a case business analyst, you can customize views by adding custom fields to case views and task views.
You must first add the field in the record definition that is used by the view and then add the field in the view. For information about how to add a field to a record definition, see Adding custom fields to record definitions.
For example, an employee requests for an employment verification report. Due to project requirements, the employee has two managers, a primary manager and functional manager. While creating a case for the employee, the case agent wants to add the functional manager details. To enable the case agent to specify these details, a case business analyst performs the following actions:
- Adds custom fields to the Case record definition.
- Adds custom fields to the Case Create view by using an extension container so that the fields are displayed while creating a case.
The case agent then adds details about the functional manager in the custom fields.
Warning
If you have added custom fields to a view, after an upgrade, you cannot view the new out-of-the box fields in the latest version of BMC Helix Business Workflows.
To view the out-of-the-box fields, revert your customization and add your custom fields again.
Types of fields that you can add to a view
You can add the following types of fields to a view:
- Attachment
- Boolean
- Date
- Date/Time
- Decimal
- Floating
- Integer
- Selection
- Text
- Time
Methods for adding a custom field to a view
You can add fields to a view by using the following methods:
Method | Description |
---|---|
By using an extension container | Use this method to add fields to views that cannot be customized directly. You can extend such views to add custom fields. |
By updating the record grid | Use this method to add fields to views that can be customized and consists of a record grid element. You can update the record grid of such views to display columns. |
To add a field to a view by using an extension container
By using an extension container, you can add custom fields only to the following views:
Application | Bundle | View |
---|---|---|
Case Management Service | com.bmc.dsm.case-lib | Case Create |
Case Edit | ||
Configure Case Assignments - Create | ||
Configure Case Assignments - Edit | ||
Configure Case Approvals - Create | ||
Configure Case Approvals - Edit | ||
Case Preview | ||
Person Profile | ||
Task Management Service | com.bmc.dsm.task-lib | Task Create |
com.bmc.dsm.case-lib | Task Edit | |
Task Preview |
Best Practice
To add a field to a view by using an extension container, perform the following steps:
Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
- Select the application for which you want to update a view, such as Case Management Service.
- Select View > New > Flexible > Container.
On the Properties tab, click Edit , and complete the following fields:
Field Description Name Enter a name for the view. Field Description Name Enter a unique name for the record editor. Label Enter the label to be displayed in the application. Note: If you do not provide a label, the bundle name is displayed in the extended view.
For example, if you extend the Case Create view, the bundle name Case Management Service is displayed in the view.
Record Definition Name The record definition is auto-populated in the field based on the view you extended, you can select the existing custom and out-of-the-box fields from the same record definition. Association to Use If there is only one association, the name of the association is auto-populated. If there are multiple associations, select the association that you created earlier.
Note: If you extend a view that uses the Case record definition, you do not need to specify an association.Mode The mode of the record editor is automatically set to match the mode of the record editor in the view you extended. Note: Do not change the mode. If you select a mode that is different from the mode of the record editor in the view you extended, the extension view is not displayed in the application.
CSS classes Enter the custom CSS classes that you need to apply to the view. Form Contents To include specific record fields to appear in the view, click Quick Add/Remove fields, and select the custom fields that you require. (Optional) Click to build an expression If you want to hide or display these fields when specific conditions are met, in the Expression Editor, build an expression on the fields in the record editor. For information about how to build expressions in view definitions, see Creating or modifying view definitions
.
Click Save.
- (Optional) To confirm whether the custom fields are added correctly, click Preview.
(Optional) To check whether these fields are working correctly, as a case agent, log in to BMC Helix Business Workflows and create or edit a case or task to check the new fields.
Important
- After you add or edit new fields in a view, the changes are applied to both new and existing cases.
Custom fields are displayed in cases that are created by using templates and in cases that are created without using templates. - If you add a field in the edit view mode, the field is displayed without any values in an existing case.
To add a field to a view by updating the record grid
By updating the record grid, you can add custom fields only to the following views:
Application | Bundle | View |
---|---|---|
Case Management Service | com.bmc.dsm.case-lib | Cases |
Configure Case Assignments | ||
Configure Case Approvals | ||
Case Watchlist | ||
Task Management Service | com.bmc.dsm.case-lib | Tasks |
Knowledge Management | com.bmc.dsm.case-lib | Knowledge Articles |
To add a field to a view by updating the record grid, perform the following steps:
- Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
Select the application for which you want to update a view, such as Case Management Service.
On the Views tab, click the view that you want to update, such as Cases.
In the view, select Record Grid.
- Click Add/Remove Grid Columns.
From the Available Columns section, select the field that you added in the record definition.
For example, select the Follow-up date field.Click Save.
- (Optional) To confirm whether the custom fields are added correctly, click Preview.
(Optional) To check whether these fields are working correctly, as a case agent, log in to BMC Helix Business Workflows and create or edit a case to check the new fields.
Comments
Log in or register to comment.