Back Forward Harness, Section, and Flow Action forms
Adding a SmartLabel

About Harness rules

 zzz 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.

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

.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.

 zzz 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.

 zzz 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 of your inputs. If the panel is not pinned (not pinned), click Apply to apply your inputs.

 zzz 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.

Field

Description

Property

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

Display As

Accept the default value SmartLabel. Click the magnifying glass icon (Magnifying glass) to enter values for three parameters to this HTML Property 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.

Behavior  

 zzz 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.

 zzz 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.

zzz About Flow Action rules

zzz About Harness rules

zzz About Section rules