Section and Flow Action forms
|
Tabbed Repeat presents each item of the source as a labeled tab. This layout creates a tab for one of the following sources:
Page List
or Page Group
propertyConfigure styles for tabbed repeat layouts using the Skin rule. See Skin form — Components tab — Layouts — Tabs.
The Tabbed Repeat layout defines the contents and appearance of the tab itself — not the body of content associated with the tab. For the body, define a section (with an Applies To key part corresponding to the Page Class of the source for the Tabbed Repeat control) and place the section in the single cell. For an example, see PDN article How to present a repeating group as tabs or columns on a harness or flow action form.
The following repeating layouts are available: Column Repeat, Tabbed Repeat, Grid, TreeGrid, and Tree. They provide similar options but differing presentations; choose the one appropriate to your application and user interface needs. Configure styles for repeating layouts using the Skin rule.
From the Layout control group, 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. A pop-up window opens to select the layout type:
Tabbed Repeat
as the repeat type.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.
Click the View propertiesicon to open the Tabbed Repeat panel. Complete the General tab.
Field |
Description |
Source |
Specify the source of the data for the Row Repeat layout:
Using a data page as the source To specify a data page as the source, select |
List/Group |
Available when
|
Visibility |
To control the visibility of the container, select one of the following:
Note: If this section is to become part of navigation in a composite portal, you can make the header visible only when a specific space is the current space. Enter an expression here similar to the following: pyCurrentSpace=="ASpaceName" Then select the Run visibility condition on client check box. |
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 a summary. |
Append Activity |
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 tabs after reaching a limit, or can compute additional properties for the page. |
Delete Activity |
To override the default behavior when a user deletes 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. |
Complete the Presentation tab.
Container format |
Select a format for the container. Select Other to select from custom container formats defined in the skin. In the field that is displayed, specify the custom format. |
Style |
Select a style for the layout. Select Other to select from custom styles defined in the skin. In the field that is displayed, specify the custom style. |
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 user form or flow action form or in absolute pixels. Choose:
Caution: If 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. |
Allow update |
Select this check box to allow users at runtime to add a new element immediately after an existing element, using the Note: Allow update is not available if the source is a report definition. |
Allow reorder |
Select this check box to allow for row reordering during runtime. A number for each row that doubles as a drop and drag handle for reordering will appear in front of individual rows. Numbering begins at 1 and continues for however many rows present. If there is only one row and the Allow Reordering check box is selected, a no sign () appears, preventing reordering. Note: Allow reorder is not available if the source if a report definition. |
Display header and title |
Select if you want to display a header for the layout. Container settings appear when you select this check box. Note: If you plan to localize the application using this rule, choose the text carefully and limit the length to no more than 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. |
When you select a Header Style of Tabbed
, the layout appears in a Tab Group wireframe. Select it to make it active and click the View propertiesicon in the header to open the Tab Group properties panel. Your settings apply to all the tab headings in the group.
Complete the top field and General tab. There are no settings on the Advanced tab.
Top field
Field |
Description |
Format |
Select the format you want to apply to the tabs in the group. To configure the format's appearance, access the Components tab in the Skin and then select Tab in the Layouts area.
|
General tab
Field |
Description |
Tab Position |
Select the placement of the tabs at runtime:
If you select |
Tab Orientation | If you selected a left or right Tab Position, select to display tabs horizontally or vertically. Horizontal is the default. If you select vertical orientation, the tab title is rotated based on the tab position, left or right. |
Stretch Tabs | Select to stretch the horizontally or vertically to fit the available space. If the Tab Position is Top or Bottom, tabs stretch horizontally; if the Tab Position is Left or Right, the tabs stretch vertically. |
The body of the tab control contains a single non-expandable cell. To define the body:
Create a section with an Applies To class that matches the Page Class of the Page Group or Page Class property.
Optionally, users at runtime can add and delete tabs, depending on which icons you include on the form.
When you create a Tabbed Repeat layout, two icons appear. Users can add or remove tabs by default. You can change this default behavior by deleting the Add Tab icon or Delete Tab icon as needed.
When a Tabbed Repeat layout is based on a Page Group
property and users click the Add Tab icon to append a new tab, or press theEnter
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.
The Pega Platform 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.Note: At 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.