Back Forward Harness, Section, and Flow Action forms
Adding paragraphs to place rich text in a layout cell or header

About Harness rules

  Show all 

By referencing a paragraph rule (Rule-HTML-Paragraph rule type), a cell in the layout can present rich text, which can include the results of JSP tags and stream processing. Unlike a label, display text in a paragraph can be longer than 64 characters. (You can add paragraphs to headers as well as to cells.) C-2526 GROVS

Follow these instructions to present the paragraph, with contents defined by a paragraph rule. Optionally, you can identify a pop-up section rule to appear when users hold the mouse pointer over the paragraph cell.

Use a paragraph rather than a label to present the formatted text provided by a paragraph rule.

 1. Drag and drop the Paragraph control

Paragraphs can appear in any cell.

Click the down-arrow (Arrow) at the right end of the Controls control group (Layout group) and select the Paragraph control (). Click and drag the paragraph control to the cell. When the pointer changes shape to indicate that a single cell is selected, release the mouse button to drop the control.

If the destination cell is not empty, the dropped paragraph replaces the current contents of the cell. Click the magnifying glass icon (Magnifying glass) to display the Cell Properties panel.

 2. Complete the Cell Properties panel — Top field

Complete the Cell Properties panel that appears.

If the panel is pinned (Pinned), the wireframe presentation on the rule form changes immediately to reflect of your inputs. If the panel is not pinned (not pinned), click Apply to apply your inputs. If the paragraph doesn't immediately appear in the wireframe, click once in the cell.

Field

Description

Name

SmartPromptSelect or enter the second key part — Purpose value — of a paragraph rule. The system uses the Applies To key part of the current rule to find the paragraph rule during rule resolution at runtime.

 3. Complete the Cell Properties panel — General tab

The General tab defines the overall appearance of the paragraph.

Field

Description

Visible

Select to determine when the paragraph appears. (If this setting is not applicable, the cell contents are blank.)

  • Choose Always to have the paragraph appear or be hidden based on the visibility of the enclosing section or flow action when the form is first presented or is refreshed. The system checks this condition only once.
  • Choose Other Condition to make the visibility depend on a when condition rule, a Boolean expression evaluated only once, or a test evaluated repeatedly upon JavaScript events. C-1990 B-21692
Condition

SmartPrompt If you selected Other Condition for the Visible field, complete this field. Enter an expression involving another property, or identify the When Name key part of a when condition rule. PROJ-283 Specify one of three outcomes:

  • When condition rule — Enter the When Name key part of a when condition rule that determines the visibility of this field at runtime. The system uses the Applies To key part of the current rule in rule resolution to locate the when condition rule. Click the pencil icon (Pencil) to review or create the when condition rule.
  • Expression evaluated once — Enter an expression that returns true or false. This expression can involve multiple properties, function calls, and other syntax as supported by the <pega:when > JSP tag.
  • Simple Java expression evaluated upon JavaScript events — To dynamically control the visibility of this property with a JavaScript event, enter one or more comparisons involving a target property values to literal constant values and select the Run on Client? box. You can use parentheses and the && and || operators to group comparisons. At runtime, the result determines whether the content of this cell appears in read-only mode or in the mode of the enclosing layout. Examples: GRP-224

.Color =="Blue"

.Phone !="0"

(.Phone!="0")&&(.StateCode=="MA"||.StateCode=="VA"))

Run on Client

This field appears only if you select Other Condition for the Visible field and a simple expression in the Condition field. SR-4450 SR-4339 B-21697 embedded

Select to indicate that the Condition field contains one more property comparison tests that will be evaluated on the user workstation in response to a client event. See Implementing dynamic form actions and the Client Event Editor. C-1990

Clear to indicate that the Condition field contains a when condition rule name or an expression to be evaluated once upon initial display of the form.

Read Only?

NoteLeave cleared in most cases. Paragraphs, like labels, are always presented in read-only mode. Select to cause the paragraph to be presented with read-only styles always, or based on a when condition rule, even when the enclosing layout is in read-write mode. Complete the next field to modify the effect of this checkbox. PROJ-283

Condition

SmartPromptOptional. Enter an expression involving another property, or identify the When Name key part of a when condition rule. PROJ-283 Specify one of three outcomes: REMOVED RUN ON CLIENT per 3/7/07 KUCHS

  • Leave blank to present the paragraph in read-only styles always, regardless of the mode of the enclosing layout.
  • When condition rule — Enter the When Name key part of a when condition rule that determines the style of this paragraph at runtime. The system uses the Applies To key part of the current rule in rule resolution to locate the when condition rule, and executes the when condition rule once as it renders the form. Click the pencil icon (Pencil) to review or create the when condition rule.
  • Expression evaluated once — Enter an expression that returns true or false. This expression can involve multiple properties, function calls, and other syntax as supported by the <pega:when > JSP tag.

This field appears only when you select the Read Only? checkbox.

 3. Complete the Cell Properties panel — Advanced tab

The Advanced tab defines styles for the paragraph.

Field

Description

Read-Write Style

SmartPromptOptional. By default, when the work object form or flow action form appears in read-only mode, the CSS style named DataValueRead or DataValueRead RV2 applies. If this cell is not controlled by Smart Layout restrictions, you can enter another style name or select from those listed.

The SmartPrompt list shows all styles that start with the word Data. You are not limited to these styles.

Click the pencil icon (Pencil) to review the text file rule that defines the style sheet. Your application can override and extend this style sheet in an application text file rule.

Read-Only Style

SmartPromptOptional. By default, when the work object form or flow action form appears in read-only mode, the CSS style named DataValueRead or DataValueRead RV2 applies. If this cell is not controlled by Smart Layout restrictions, you can enter another style name or select from those listed.

The SmartPrompt list shows all styles that start with the word Data. You are not limited to these styles.

Click the pencil icon (Pencil) to review the text file rule that defines the style sheet. Your application can override and extend this style sheet in an application text file rule.

Inline Style

To apply inline styling to this cell only, type a CSS style definition in this field, or click the magnifying glass to access a Style Editor window. Styles you enter in this field supplement and override style elements defined in style sheets, according to normal CSS rules.

Inline styles are recorded in the generated HTML for the form; they do not alter the CSS definitions.

Using the Style Editor

You can select the font, color, font size, text align, vertical align PROJ 242 – TASK 16156, borders, margins, and other attributes of this cell using selection lists. The Style Editor maintains a preview of the resulting presentation. If you alter the style definition directly, click  Apply   to update the preview.

Click  OK   to record the style defined with the Style Editor in the panel.

Up About Flow Action rules

Up About Harness rules

Up About Section rules