Back Forward Harness, Section, and Flow Action forms
Adding a Smart Label

About Harness rules

  Show all 

A Smart Label is a text label that is clickable. At runtime, if the user clicks the label text, a pop-up SmartInfo section appears. Proj-1019 5.4

By default, Smart Label text appears in DARK RED FONT, to indicate to users that the label can be clicked. You can change this through a CSS style definition in the workforms style sheet that applies to your application. For example, you can update the workforms style sheet to include a style definition such as MADDS 5/28/08

.smartInfo { color:#003366; font-weight:bold }

Adding a Smart Label is similar to adding a text label, except that the Format field value is SmartLabel and accepts parameters.

You can use the Branding wizard to modify the CSS style definition for Smart Labels. See About the Branding wizard. v6.1 proj-242 2031

  1. Build and test a section rule

Identify or create a section rule that forms the contents of the pop-up window.

The section rule cannot contain input fields.

  2. Add the Smart Label control to the Harness, Section, or Flow Action rule

Click the down-arrow (Arrow) at the right end of the Advanced control group (Layout group) and select the Smart Label control (Chart). Drag the control. When the pointer changes shape to indicate that you can drop the layout, release the mouse button.

Click the magnifying glass icon (Magnifying glass) to open the Cell Properties panel. Complete the panel to define the label appearance and behavior. If the panel is pinned (Pinned), the wireframe presentation on the rule form changes immediately to reflect your inputs. If the panel is not pinned (not pinned), click Apply to apply your inputs.

  3. Complete the Cell Properties panel — Top fields

Click the magnifying glass icon at the top right of the control to open the Cell Properties panel. GRP-229

Field

Description

Property

Accept the placeholder property .pyTemplateSmartLabel. (This property is unaffected at runtime.)

Control

Accept the default value SmartLabel. Click the magnifying glass icon (Magnifying glass) to enter values for three parameters to this Control rule:

Parameter Description
Label

Enter the text that is to appear in the cell on the harness, section, or flow action form.

Section Name

Enter the second key part — Stream Name — of a section rule to appear as a pop-up when the user clicks the label. At runtime, the system uses the Applies To class of the current rule to find the section rule using rule resolution.

Header text

Enter text to appear at the top of the pop-up SmartInfo window. BUG-12929 required

Behavior  

  4. Complete the Cell Properties panel — General tab

The General tab for a Smart Label control is identical to the General tab for a Label control. See Completing the Layout tab — Adding a Label — General tab.

  5. Complete the Advanced tab

The Advanced tab for a Smart Label control is identical to the Advanced tab for a Label control. See Completing the Layout tab — Adding a Label — General tab.

Up About Flow Action rules

Up About Harness rules

Up About Section rules