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.6.3 GRP-46034
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. BUG-13950 rejected For an example, see PDN article 25449 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.
Adding and deleting Tabbed 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. A pop-up window opens to select the layout type:
Tabbed
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.
Complete the Tabbed Repeat panel — Top fields
Click () to open the Tabbed 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 presentation on the rule form changes immediately to reflect of your inputs. If the panel is not pinned (), click Apply to apply your inputs.
Field |
Description |
||||||||||||||||||||||||
Format |
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 Using the Skin rule, 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 |
||||||||||||||||||||||||
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. Leave blank so that the entire Tabbed Repeat layout is always visible. To control the visibility of the layout, enter or select one of the following:
As a best practice, use the Condition Builder to edit this field. Click ( ) to open the tool. See Using the Condition Builder to configure dynamic UI actions. Use this to control visibility of the entire Tabbed Repeat layout. Use the Body Visible When condition on the Advanced tab to apply a condition to each tab at runtime. |
||||||||||||||||||||||||
Run on Client? |
Appears when you enter a simple expression in the Visible When field. Select to cause dynamic execution of the condition each time the value of a property stated in the condition changes. |
||||||||||||||||||||||||
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
|
||||||||||||||||||||||||
Applies To |
Available when |
||||||||||||||||||||||||
Report Definition |
Available when |
Complete the Tabbed Repeat panel — General tab
Complete the General tab.
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:
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. GROVS 8/24/06 |
||||||||||
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 element immediately after an existing element, using the This option is not available if the source is a report definition. |
||||||||||
Header Type |
Select one of the following header styles. This field does not appear if the Format value is
|
||||||||||
Expand When | Optional. Only applies to Collapsible header styles.
|
||||||||||
Run on Client? |
Appears when you enter a simple expression in the Expand When field. Select to cause dynamic execution of the condition each time the value of a property stated in the condition changes. |
||||||||||
Defer Load? |
This field appears for |
||||||||||
New Tab Group? |
For Header Type of If this is the only tab in a group, this option is selected by default and cannot be changed. |
||||||||||
New Layout? |
For Header Type of If this is the only accordion in a group, this option is selected by default and cannot be changed. |
Complete the Tabbed Repeat panel — Advanced tab
Field |
Description |
Body Visible When |
Optional. To cause one or more tabs to appear at runtime only when certain conditions are true. To control the visibility of specific tabs, enter or select one of the following:
The when condition rule is evaluated for each element, and so can cause some tabs to appear and other tabs to be omitted. As a best practice, use the Condition Builder to edit this field. Click ( ) to open the tool. See Using the Condition Builder to configure dynamic UI actions. |
Active When |
Optional. To make one or more tabs available to the user at runtime only when certain conditions are true. To control the visibility of specific tabs, enter or select one of the following:
The when condition rule is evaluated for each element, and so can cause some tabs to appear and other tabs to be omitted. As a best practice, use the Condition Builder to edit this field. Click ( ) to open the tool. See Using the Condition Builder to configure dynamic UI actions. This condition runs on the server. The Run On Client option does not appear when you enter an expression. |
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 () to start the Image Catalog tool (a pop-up version of the Image Library landing page). Not available when the Header value is |
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 tabs 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 (). |
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 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. This field is meaningful only for repeating layouts created in Version 5.2 or later that include a delete row icon (). |
Tab Group properties panel
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 magnifying glass icon () 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. |
Define the Tab body in a section
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.
Allowing users to append or delete Page List or Page Group elements (tabs)
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.
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 () 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.
PRPC 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 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.