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:
ParameterDescription
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 Optional. Leave blank if no dynamic form actions to other parts of the form are to occur based on user updates or values for this field. C-1990

To establish a dynamic form action, click the magnifying glass icon (Magnifying glass) to open the Client Event Editor in a new dialog window. Complete the Client Event Editor to select an event (OnBlur, OnChange, or OnClick) and the resulting form action. C-2526

Click the help icon ( Help) on the Client Event Editor for assistance. For general information on this capability, see Implementing dynamic form actions and the Client Event Editor.

Event support is available for harness, section, or flow action rules that have Generate for set to JSP on the HTML tab and that use the SmartFrames layout.

  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 — Advanced tab.

Up About Flow Action rules

Up About Harness rules

Up About Section rules