Advanced options for a harness
You can define how your application generates the HTML code to save processing power and improve the user experience. Each time you save a harness, Pega Platform generates source HTML. By understanding the advanced settings in the harness rule, you can customize HTML to meet the needs of your application.
Advanced optionsThe following table presents the rules that govern HTML creation in a harness rule.
|Enable client side validation||
Causes the application to validate the input that the user enters in a field even before the user submits the entire form.
You can use this feature in applications where users enter data, such as text or dates, by typing rather than selection. Client-side validation can detect and mark invalid input earlier, and generates less network traffic.
Standard client-side validation scripts are in the webwb.CSValid.js text file rule. For localization purposes, the corresponding error messages are in the CSValid HTML fragment rule . You can add custom client-side validation scripts or error messages on an application-wide level by overriding the UserWorkFormHTML fragment rule , which is included in the fragment rule WorkFormStandard.
|Enable expression calculation||
Allows the application to automatically recalculate the target properties of a declare expression rule and properties that are involved in constraints rules.
The system updates the display when the user focus leaves the input field for a property. For more information, see More about Declare Expression rules.
Generates portlet-compliant HTML that a portal server can display. Portlet-compliant HTML meets the requirements of Java Specification Request 168, which defines the portlet standard.
You can send portlet-compliant harness form to an external portal server through Service Portlet rules and displayed in a portlet window. A harness is considered portlet-compliant only when its sections are also portlet-compliant.
The rule type Service Portlet is deprecated. Use Pega Web Mashup instead.
The standard harness Work-.SimpleConfirm is an example of a portlet-compliant form.
Indicates that the application can localize the text in this harness. If your application contains a translated ruleset for a user's locale, at run time, the harness displays the text in the relevant language.
This check box is
available only when Generate For is set to
|Do not display dirty warnings||
Prevents the harness from displaying warnings about unsaved work.
Generates a placeholder UI when the harness loads.
Designates the harness as an area where documents open for processing in the application.
If you select the Work area check box, the Do not display in channel content list appears.
Overrides the document type for the harness. By default, the document type is inherited from the application rule.
You can select one of the following document settings:
|IE document mode||
Determines how the harness uses document compatibility mode in Internet Explorer (IE). You can select one of the following document settings:
|Enable client-side template UI||Sets the template-based rendering of the UI. You can select one of the
system attaches the ID attribute to the
Displays a read-only version of the harness in HTML.
At run time, Pega Platform uses stream processing to evaluate the JSP tags and the source HTML in the context of the current clipboard contents and static files. The HTML references properties and other rules such as HTML fragment rules, HTML rules, controls, and sections.