Back Forward Harness, Section, and Flow Action forms
Adding a Tabbed Repeat control

About Harness rules

  Show all 

XXXX V6.2 Launchpad GRP-26836 addition of Report Definition and Declarative Page as repeating sources Row Repeat, Columns, Tabbed XXXXXXXX

A repeating layout defines a rectangular area on a work object form or flow action form corresponding to the HTML <TABLE > element. Three repeating layouts are available: Row Repeat, Column Repeat, and Tabbed Repeat. Proj-1009 V5.4 They provide similar options but differing presentations; choose the one appropriate to your application and user interface needs.

The Tabbed Repeat control creates a tab for each element of a Page List or Page Group property and defines the contents and appearance of the tab itself — not the body. For the body, define a section (with an Applies To key part corresponding to the Page Class of the property) and place the section in the single cell. BUG-13950 rejected For an example, see Pega Developer Network article PRKB-25449 How to present a repeating group as tabs or columns on a harness or flow action form.BROUB not 25499

  Adding and deleting Tabbed Repeat control

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

On the Layout Options form:

  1. Click the Repeating radio button.
  2. Select Tabbed as the repeat type.
  3. Optionally, check the Stretch to fill page box.
  4. Click OK.

To delete a Tabbed Repeat layout, select the layout and click the Delete Row button (). Do not use the Delete Cell button for this action.

 Complete the Tabbed Repeat panel — Top fields

Click the magnifying glass icon (Magnifying glass) to open the Tabbed Repeat panel. Complete all tabs of the panel.

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.

Field

Description

Header

Choose a format to control what appears above the layout (known as a header or subheader), and the appearance of both the header or subheader if any, and aspects of the body.

This choice primarily affects styles and appearance. Information in or below a subheader (including Hidden Sub) present information that is right-indented from information in a header.

Using the Branding wizard, you can review or revise the styles (colors, fonts, padding and margins) associated with each header or subheader format.

Group/Selection

Description

Default

 
No Format No header or subheader appears. In addition, no styles applied to the body that are specific to this layout, including background, fonts, colors, padding, margins, and so on. The appearance of the body depends on styles of the enclosing control (which may be another layout).

Header

 

Standard

For a bolder or more prominent header.

Custom

For a custom header. Select in the HTML field an HTML rule that defines the content and appearance of the custom header.

Hidden For no header. (This option is not available for the top-level of a harness rule).

SubHeader

 

Standard (sub)

For a bolder or more prominent sub header.

    A

  B

  C

  D

  E

These names are provided so that you can apply separate styles to the up to 6 types of subheaders (counting the basic SubHeader). PROJ-277

For example, if your forms include three hierarchical levels of subheaders, you can select A for the highest level, B for the middle level, and C for the lowest level.

In the standard style sheets, these subheaders function identically; they differ only in minor ways in the presentation of the subheader:

  • A — No bar in the subheader
  • B — Underlined subheader label
  • C — Outline border
  • D — Black font
  • E — Preserves V5.5 flow action styles for layouts created from V5.5-style flow actions. BUG-26946 V6.1SP1.
Outline

Provides no header area, but a border around the contents of the layout with a single text label. (This produces HTML FieldSet and Legend elements).

Hidden (Sub)

For no subheader, but indented body.

In the workform CSS style sheets, the various styles named groupTitleBarzzzz define the appearance of the SubHeader element; for example groupTitleBarBackground. For A, the corresponding styles are named a_groupTitleBarBackground and so on. Similarly, the names of styles for B, C and D start with b_groupTitleBar, c_groupTitleBar, and d_groupTitleBar respectively.

Template

Select a SmartLayout template:

  • Single — A single column pair.
  • Double — One column pair, a spacer column and a second column pair.
  • Triple — Three column pairs with two spacer columns.
  • Custom — Freeform
HTML

If you selected Custom for the Header field, identify here the second key part of an HTML rule that defines the contents of the header.

Title

Optional. Enter text for the header or subheader, above the table. You can include directives or JSP tags in this text.

NoteWhen you plan to localize the application using this rule, so the application can support users in various languages or locales, choose the text carefully and limit text length to 64 characters. When practical, choose a caption already included in a language pack, to simplify later localization. A field value rule with this text as the final key part is needed for each locale. See About the Localization wizard.

Visible When

SmartPrompt Optional. To cause the entire Tabbed Repeat layout to appear only when certain conditions are true at runtime, select or enter the When Name key part of a when condition rule. At runtime, the system uses the Applies To class of this harness rule as the Applies To key part to locate the when condition rule. PARKT 04/08/05

Click the pencil icon (Pencil) to review or create the when condition rule.

NoteUse this to control visibility of the entire Tabbed Repeat layout. Through a separate test that is applied at runtime to each row, you can control which rows appear.

 Complete the Tabbed Repeat panel — General tab

Complete the General tab. To enable SmartPrompt prompting while using this tab, complete the Of Class field before the PageList/Group field.

PageList/
PageGroup

SmartPromptSelect or enter the property (of mode Page List or Page Group) that at runtime contains the pages to appear as tabs in this layout. Identify a property within the top-level page that corresponds to the Applies To class of the current rule. SR-10598 BUG-4922 GROVS 5/25/07 (If you are only prototyping the appearance of the harness, section, or flow action form, you can accept the placeholder property @baseclass.pyTemplatePagelist, and complete or ignore other fields on the Tabbed Repeat panel as desired.)

Type a period followed by the property name. For embedded pages, type the qualified name. For example, if myArray is a Page List property, the following are accepted:

.myArray

.page1.myArray

.page1.page2.myArray

Click the pencil icon (Pencil) to review the property rule.

You can't use the syntax Apagename.Apropertyname in this field (with no leading period) to identify a Page List or Page Group property that is within a different top-level page. To present such properties in a repeating layout, create a section rule with an Applies To class corresponding to the Apagename page, and include the section rule in this rule.

Of Class

SmartPrompt Select or enter the class of the pages in the Page List or Page Group property identified the previous field.

Allow Update

For repeating layouts added to the harness, section, or flow action (in release V5.2 or later) select this checkbox to allow users at runtime to add a new element immediately after an existing element, using the Enter key. For such repeating layouts, this checkbox does not affect the appearance or function of the Add and Delete operations. See Allowing users to add or delete Page List or Page Group elements (tab).

Header Type

Select one of the following header styles. This field does not appear if the Header value is None, Subheader None, Custom, or Outline.

Header Style

Description

Bar

Provides a static horizontal bar at the top of the layout.

Collapsible

Provides a horizontal bar at the top of the layout, with the ability to expand or collapse, to show or hide the layout, when clicked

Tabbed

Creates a new tab group to which additional layouts can be added.

Accordion

Creates a new group of layouts that contain collapsible headers. Only one layout can be displayed at once.

Expand When

SmartPromptOptional. Only applies to Collapsible header styles. Select a when condition rule to control whether this layout appears expanded or collapsed upon initial runtime presentation.

If blank, the state of the layout (expanded or collapsed) when you save the Harness, Section, or Flow Action form becomes the state upon initial runtime presentation.

Defer Load?

This field appears for Collapsible, Tabbed and Accordion layouts. Select to postpone, at runtime, the loading of the contents of this layout from the server until the user clicks to make the body visible.

New Tab Group

For Header Type of Tabbed only. Select to present this layout as the first in a distinct group of tabs, identified by indenting and optionally styles.

New Layout

For Header Type of Accordion only. Select to start this accordion element as the first in a group. VAGUE

 Complete the Tabbed Repeat panel — Advanced tab

Field

Description

Body Visible When

SmartPrompt Optional. To cause rows of this repeating layout to appear only when certain conditions are true at runtime, select or enter the When Name key part of a when condition rule. At runtime, the system uses the class of pages in the Page List or Page Group property — not the Applies To class of this harness rule — as the Applies To key part to locate the when condition rule. PARKT 04/08/05

The when condition rule is evaluated for each element, and so can cause some tabs to appear and other tabs to be omitted. CLINIC APAPF 8/12/05

Click the pencil icon (Pencil) to review or create the when condition rule.

Width

SmartPrompt Optional. Select whether the column widths in the table are to be set at runtime as a percentage of the total width of the work object form or flow action form or in absolute pixels. Choose:

  • px — To have the column widths on the work object form or flow action form exactly match, in pixels, the column widths on the current rule form.
  • % — To have the column widths on the work object form or flow action form adjust to percentages of the total width of the work object form or flow action form. If you adjust the column on the rule form to be 25% of the total width, the column on the work object form or flow action form will be 25% of the form width, and will grow or shrink if users resize the form.
  • px-fixed — To specify a column width exactly. The user browser uses this width even when data values may be longer (after applying styles, padding, margins, and so on).
  • stretch-spacer — To adjust the width of the layout columns to match on the current width of the design-time Harness, Section, or Flow action form. Field and Label column widths do not change; Spacer columns are shrunk to be narrower or expanded to be wider.

CautionIf you choose px-fixed and a property value at runtime is wider than width defined by the pixel value, the value is truncated, and users are unable to see the full value. GROVS 8/24/06

ID

Optional. Enter a name that becomes the ID=" " attribute value for the <TABLE > element. This option is useful when a JavaScript function refers to the table.

Header Image

Optional. Identify the second and third key part of a binary file rule corresponding to a small image. Click the magnifying glass icon () to start the Image Catalog tool. (Not available when the Header value is None or Custom.)

Style Prefix

Advanced featureOptional. Provides the ability to reference a family of custom styles for headers. For example, type A in this field to use styles named .A_standardheader* rather than the normal .standardheader* styles. Define the prefixed styles in your workform_zzzzz.css text file (created by the Branding wizard) or in another text file that you identify on the Scripts and Styles tab of the Harness form.

This field is available only if you selected Tabbed or Accordion for the Layout field.

Append Activity

Advanced featureThis field is visible only when Allow Update is selected on the General tab. Leave blank in most cases.

To override the default behavior when a user adds a row to the array, identify the second key part of an activity to be called. Design your activity to accept the same parameters as the default activity Work-.AppendToPageGroup or Work-.AppendToPageList (which are final rules).

For example, your activity can prevent users from adding rows after reaching a limit, or can compute additional properties for the page.

This field is meaningful only for repeating layouts created in Version 5.2 or later that include an add row icon (Add row). or a button linked to the AddThisRow standard activity. NO SUCH ACTIVITY

Delete Activity

Advanced feature This field is visible only when Allow Update is selected on the General tab. Leave blank in most cases.

To override the default behavior when a user adds a row to the array, identify the second key part of an activity to be called. Design your activity to accept the same parameters as the default activity Work-.RemoveFromPageGroup or Work-.RemoveFromPageList (which are final rules). For example, your activity can require that at least one row remains, or that users can't delete the first row.

This field is meaningful only for repeating layouts created in Version 5.2 or later that include a delete row icon (Add row). or a button linked to the DeleteThisRow standard activity.NO SUCH ACTIVITY

 Define the Tab body in a section rule

The body of the tab control contains a single non-expandable cell. To define the body:

Create a section rule with an Applies To class that matches the Page Class of the Page Group or Page Class property.

  1. Add and define Label controls, InputBox controls, and so on to the section.
  2. Save the Section form.
  3. Return to the original rule form. Drag the section control () and drop it in the single body cell of the Tabbed Repeat control.
  4. Save the form.

 Allowing users to append or delete Page List or Page Group elements (tabs)

Optionally, users at runtime can add tabs, delete tabs, or both add and delete tabs, depending on which icons you include on the form.

When you create a Tabbed Repeat layout, two icons appear. By default, users can add, append, and delete tabs at runtime. You can change this default behavior:

 Identifying subscript values for added Page Group pages

When a Tabbed Repeat layout is based on a Page Group property and users click the Add Tab icon (Add row) to append a new tab, or press the Enter key to insert a new tab, the system requires a subscript value for the new page.

In a Page Group property, the embedded text property pxSubscript acts as a unique identifier for the pages. This value may also be present in another property found on each page. As a best practice for usability, present the pxSubscript property (as a read-only value) in the left column of each row.

In some cases, the set of allowable values for subscripts are limited to a predefined static list, such as the codes for the 50 states of the United States (AL for Alabama through WY for Wyoming). In other cases, the set of allowable values for subscripts is unpredictable and effectively unrestricted, though each value must be a valid Java identifier. For example, a home insurance policy may contain a Page Group property with a page for each insured property, with the property identified by a government-issued code.

Process Commander includes standard rules that support both situations. Your application can override the standard rules to allow users to enter or select a subscript value.

  1. Optionally, copy and override the standard section rule @baseclass.SubScriptPromptInput with another section of that name that applies to the page class of the Page Group. Include only one input field on the section display. For example, if there are only a few allowed pxSubscript values, you can present the unused values as a set of radio buttons.
  2. Override the standard property @baseclass.pxSubscript with another property of that name that applies to the page class of the Page Group.
  3. Optionally, select a Table Type of Local List or Remote List on the General tab of the new property. Then, complete the table fields, to enumerate the allowable values as a Local List, or define a Remote List that assembles the values dynamically.
  4. Optionally, present the pxSubscript property as a read-only value in the top row of each column (or in another location meaningful to users).
  5. At runtime, when users click the Add Tab icon, the system searches for a section named SubScriptPromptInput to allow the users to select a value. This display excludes the subscript values already in use. B-25003 BUG-1496 Make sure that this section prompts for only a single input. GROVS APAPF 7/20/07

NoteAt runtime, the system controls the order of tabs presented for a Page Group property. After you append or insert a new tab, it may be re-sorted to a different position after the Submit is complete. NRESTRICTED CASE?

Up About Flow Action rules

Up About Harness rules

Up About Section rules