Harness, Section, and Flow Action forms
|
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. They provide similar options but differing presentations; choose
the one appropriate to your application and user interface needs.
For a Column Repeat layout, each column of the table corresponds to an
element (a single page) of a Page List
or Page
Group
property. C-2526 The column can present embedded
properties for each page, either as fields or formatted by a section
rule. Proj-1010 V5.4SP2 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.not 25499
BROUB
Adding and deleting a Column Repeat layout
Click the down-arrow () at the right end of the Layout control group () and select the Layout control (). 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:
Column
as the repeat type.To delete a Column Repeat layout, select the layout and click the Delete Row button (). Do not use the Delete Cell button for this action.
Complete the Column Repeat panel — Top fields
Click the magnifying glass icon () to open the Column Repeat panel. Complete all tabs of the panel.
Your updates to this panel can update the rule form immediately or upon clicking Apply, depending on the Property Panel settings in your Edit preferences. See Setting your preferences. If the panel is pinned(), the wireframe on the rule form changes immediately to reflect your inputs. If the panel is 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 and aspects of the body. This choice primarily affects styles and appearance.
Information in or below a subheader (including Using the Branding wizard, you can review or revise the styles (colors, fonts, padding and margins) associated with each header or subheader format.
In the workform CSS style sheets, the various styles named
|
||||||||||||||||||||||||
Template |
Select a SmartLayout template:
|
||||||||||||||||||||||||
HTML |
If you selected |
||||||||||||||||||||||||
Title |
Optional. Enter text for the header or subheader, above the table. You can include directives or JSP tags in this text. When 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 |
Optional. To cause the entire Column 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 () to review or create the when condition rule. Use this to control visibility of the entire Column Repeat layout. Through a separate test that is applied at runtime to each column, you can control which columns appear. |
Complete the Column 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.
Field |
Description |
PageList/ PageGroup |
Select or enter the property (of mode Type a period followed by the property name. For embedded
pages, type the qualified name. For example, if myArray is a
.myArray .page1.myArray .page1.page2.myArray Click the pencil icon () to review the property rule. You can't use the syntax Apagename.Apropertyname in
this field (with no leading period) to identify a |
||||||||||
Of Class |
Select or enter the class of the pages in the |
||||||||||
Allow Update |
For repeating layouts added to the harness, section, or
flow action. select this checkbox to allow users at runtime
to add a new column immediately to the right of an existing
column using the |
||||||||||
Allow Reordering |
GATZH 3/25/2010 for v6.1 Select this checkbox to allow for column reordering during runtime. A number for each column that doubles as a drop and drag handle for reordering will appear in front of individual columns. Numbering begins at 1 and continues for however many columns present. If there is only one column and the Allow Reordering checkbox is selected, a no smoking sign () will appear preventing reordering. |
||||||||||
Header Type |
Select one of the following header styles. This field does
not appear if the Header value is
|
||||||||||
Expand When |
Optional. Only applies when the Header
Type is 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 when the Header Type
is |
||||||||||
New Tab Group |
For Header Type of |
||||||||||
New Layout |
For Header Type of |
Complete the Column Repeat panel — Advanced tab
Field |
Description |
Body Visible When |
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 The when condition rule is evaluated for each row, and so can cause some rows to appear and other rows to be omitted. CLINIC APAPF 8/12/05 Click the pencil icon () to review or create the when condition rule. |
Width |
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:
If you choose
|
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. |
Summary |
Optional. Enter text to supply a value for the
|
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 |
Style Prefix |
Optional. 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
|
Append Activity |
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-.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 (). or a button linked to the AddThisRow standard activity. NO SUCH ACTIVITY |
Delete Activity |
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 (). or a button linked to the DeleteThisRow standard activity.NO SUCH ACTIVITY |
Creating columns during development
Use Windows drag operations to stretch or adjust the width of the table and of columns in the table.
The table initially contains three columns and three rows. Usually,
the top row holds labels, the second row holds fields (property
values), and the final row contains the Add Column control
(). When the
section appears at runtime, the second row is repeated for each
existing Page List
or Page Group
page.
Use these seven cell controls to add or delete columns:
Control |
Description |
Delete the selected row, container, layout, or repeating group. | |
Insert a new column before (to the left of) the selected column. | |
Insert a new column after (to the right of) the selected column. | |
Delete the selected column. | |
Merge the selected cells in a single row or column into one cell. | |
Unmerge — Undo the immediately previous merge. | |
Delete the contents of a single cell (not a row or column). |
To reorder rows or columns within a repeating layout, you can select and drag a single row or column using the dots above or to the left of the table; these act as handles.
DISPUTED To duplicate rows or columns within a repeating layout:
Ctrl
key.Ctrl
key to drop a duplicate row or
column.Allowing users to append or delete Page List or Page Group elements (columns)
Optionally, users can add columns, delete columns, or both add and delete columns, depending on which icons you include on the form.
when you first create a Column Repeat layout, a three-by-three
table appears. Typically, cells in the left column present labels, but
these cells can also hold other property values (not from the embedded
Page List
or Page Group
pages). Cells in the
right-most column are typically used to present the Delete Column icon
(), but can also hold other property
values (not from the embedded Page List
or Page
Group
pages).
At runtime, the middle column appears once for each page. By default, users can add, append, and delete rows at runtime. You can change this default behavior:
You can't delete the left and right columns. If they are not needed, you can apply a style that makes them not visible at runtime.
Optionally, you can use button controls or URL controls on the repeating layout rather than the standard icons for Add Column and Delete Column icons. The icon, button, or URL control can appear anywhere in the row.
Identifying subscript values for added Page Group pages
When a Column Repeat layout
is based on a Page Group
property and users click the Add
Column icon () to append a new column, or press the
Enter
key to insert a new column, 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.
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.Page
Group
.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.
At runtime, the system controls the order of
columns presented for a Page Group
property. After you
append or insert a new column, it may be re-sorted to a different
position after the Submit is complete. NRESTRICTED CASE?