|
Contents ![]() |
You can enter HTML source directly into the HTML
Source text area. Alternatively, click the pencil icon
() to open your HTML editor.
Field |
Description |
Omit extra Spaces? |
Select to eliminate extra space characters in the processed HTML. This can make transmission or processing more efficient. Is does not alter the appearance of the HTML when displayed in a browser. When selected, during stream processing the system:
Stream processing always copies space characters within the text of a property value, non-breaking spaces ( ) and space characters within a literal directive into the processed HTML without change. |
Property Type |
Optional. If this HTML property rule is a likely
choice for presenting a field on a work object form or
flow action form, you can select a type or
Your choice helps a developer — while working on
a harness, section, or flow action rule — select an
alternate HTML format for a property that is best suited
to the application need. This value acts only as a
filter; it does not prevent this HTML property rule from
being referenced by any property rule. (The
If not blank, the name and two previews (read-write
mode and read-only) of this HTML property rule appear on
the pop-up list accessed by the magnifying glass button
(
|
Display |
Optional. If this HTML Property rule is a likely choice for presenting a field on a work object form or flow action form, you can select a format here. Your choice helps a developer — while working on a harness, section, or flow action rule — select an alternate HTML format for a property that is best suited to the application need. This acts only as a filter; it does not prevent this HTML Property rule from being referenced by any property rule:
If not blank, the name of this HTML property rule appears on the pop-up lists accessed by the magnifying glass on the Field panel, for Harness, Section, and Flow Action forms (in the SmartFrames format only). INPUT elementWhen you use an INPUT element for a text box, check box, selection box or text area in the HTML text of an HTML Property rule, use this JSP syntax: <INPUT name=""<pega:reference name=""$this-name"" />"" (When using directives, you can omit the NAME attribute and its value. The system determines the NAME and value from the property rule that references your HTML Property rule.) |
Generate For |
This field and the Convert to JSP button appear only when the rule contains HTML directives rather than JSP tags. The value that appears is
HTML property rules that accept parameters must use JSP tags. See Converting from directives to JavaServer Page tags.
|
Browser Support |
The Browser Compatibility Report in the Application Preflight tool uses this value to determine what percentage of the rules in your application provide cross-browser support. |
Accessibility |
|
HTML Source |
Enter the HTML, script, or CSS text. The text can include JSP tags or directives, but not both. If this HTML Property rule is to support parameters
entered on the Parameters
tab, use only JSP tags and set the Generate
For field to JavaServer Page tags
Inline Java and access to parameter valuesUse the <% and %> delimiters to insert inline Java code (a scriptlet) in the HTML. Within the code, use Java syntax similar to the following to obtain the runtime value of a parameter from the parameter page, where MyType is defined on the Parameters tab): <% For additional examples, review the Java code in the standard HTML property rule named Decimal. Including JavaScript function definitions |
Convert to JSP |
This button appears only after you save the form when
the Generate For value is
|
Use the
<pega:when >JSP tag to conditionalize the HTML for a property based
on the mode (display or read-only mode versus read-write
mode).
To detect review mode, use:
<pega:when
test="!$mode-input">
<!-- display stuff here -->
</pega:when >
These tags are used often. Don't forget to include the closing elements.
JSP tag |
Result |
<pega:when
test="!$mode-input"> ... |
Read-only mode. |
<pega:when
test="$this:isBad"> |
Error on this element. |
<pega:reference |
Value of the active property. |
This example causes the output HTML to display a read-only value if the property value appears in read-only mode, or a select box with three choices if the property appears in read-write mode.
<pega:when
test="$mode-display" >
<pega:reference
name="$this-value" />
</pega:when>
<pega:when test="mode-input" >
<SELECT >
<OPTION
VALUE="Best">Best</OPTION>
<OPTION
VALUE="Replaced">Replaced</OPTION>
<OPTION
VALUE="Obsolete">Obsolete</OPTION>
</SELECT>
</pega:when >