Configuring display options for a harness
Define the look and behavior of your application by setting display options at a harness level. Display options help you configure error presentation, container settings, and harness auditing to further customize your user interface.
For example, you can set up a section to display a customized message when the harness
registers an error. In preparation, you create a section
customError that contains the target error text, and add it to
the harness. You also set the visibility in the section to the
hasMessages when rule from @baseclass,
which is an out-of-the-box rule that handles custom error sections.
Search for and open the harness that you want to edit.
On the Display options tab, in the Form-level errors list, define how you want to display form-level errors:
Select Custom error section, and then enter customError.If you decide to use a custom section, the standard form-level error section does not appear. Therefore, ensure that the harness layout contains the custom section. Otherwise, the system does not display error messages.
- To display errors in a standard section at the top and bottom of the user form, select Default.
- To display errors in a standard section at the top of the user form, select Top of harness.
- To display errors in a custom section that you place in the harness, select In configurable section, and then, in the Custom error section field, define the section that contains the error message.
To display form-level errors even when a field-level error occurs, select Always show.
To cause the entire run-time work item to scroll vertically as a single unit, select Keep error display visible.
In the Field-level errors list, define how you want to display field-level errors:
- To mark fields with errors with a standard error icon and display error text in a tooltip, select As image with tooltip.
- To display the error text above the field with the error, select As full error text.
To display header icons, select Show container icons.
To force the harness to adopt the minimum width that is defined in the skin rule, select Enforce CSS minimum width.For more information, see Skins.
To record every time a user requests the form that is produced by the harness, select Enable auditing, and then define the when condition for the audit.Each time the form appears, your application can add an instance of the Log-DataAccessAudit class to support auditing, reporting, and analysis. The added instance identifies the date, time, Operator ID, harness, Customer party and work item ID.
In the Initialization section, define the behavior of the harness on load:
In the Visibility list, define when the users can see the harness.
In the Data transform field, enter the data transform that you want to launch when the harness loads.For more information, see Data transforms.
In the Activity field, enter the activity that you want to launch when the harness loads.For more information, see Available UI actions.
In the ruleform, click Save.