Harness, Section, and Flow Action forms
|
A Tree Grid layout allow users to view (and possibly edit) the data in an embedded Page List
or Page Group
property. The layout combines the navigation strengths of a tree control with the quick-access data display of a grid; the layout can display a custom skin; is cross-browser compatible; is sortable by column and fields; can be configured to be editable and localizable.
In many situations, the Tree Grid is an improved alternative to Row Repeat, Column Repeat, or Tabbed Repeat controls when large amounts of data need to be displayed, is easier to implement and maintain, and is more convenient for those who have to work with the displayed data.PROJ-185 Sequoia
Adjust the Tree Grid layout area
Adjust the Tree Grid repeating area
Select the Tree Grid header in the repeating area and open its properties panel.
You define the data source in the Hierarchy Cell properties panel.
General tab
Edit Mode | Choose from the displayed options:
Modal Dialog and Embedded Pane , click the pencil icon next to the field to open the template section rule used to render the layout. By default, the templates are standard rules .pyGridModalTemplate and .pyGridDetails, respectively. To create custom templates, copy these rules into your Applies To class. Do not change the Purpose. V6.2 GRP-19651 pashm |
||||||||||
Depending on the mode you select, you will see a different array of the following fields: |
|||||||||||
Flow Action |
Appears if edit mode is Modal Dialog or Embedded Panel , or Read Only and Show Details is selected. Select or create the flow action that will provide the form for the modal dialog or detail area that appears when the user clicks a row. V6.2 GRP-2025 pashm |
||||||||||
Reordering | Select to allow users to move objects higher or lower on the display by dragging and dropping individual rows. Depending on the properties of the objects the rows represent, rows may be moved above or below other rows, or dropped into a row that can receive them to become child entries of that row.
Unavailable if source is Report Definition. Visual indicators give clues about the process: a line appears between two rows in the list if that is where the row you have started dragging will appear if you release it. A row that can receive the row you have selected as a child will change background color. If your mouse cursor is over an area where you cannot drop the row you have selected, an indicator will remind you that the area is not a valid target. If you attempt to drop the row there, the display will remain unchanged. |
||||||||||
Row Resizing | Appears if px-fixed is selected in the Width field on the Tree Grid Layout properties panel. Select to allow users to click a row border and drag it beyond the Height setting in the Row Properties panel. V6.2 GRP-19650 pashm |
||||||||||
Filtering | Select to allow users to show only those rows that match a column value filter. This setting applies to all columns (except as noted below). You can disable filtering for individual columns using the Enable Filtering checkbox in the Column Properties panel. V6.2 GRP-22524 pashm Unavailable if source is Report Definition. At runtime, a filter icon ( ) appears on the right side of the column's header cell indicating that the user can filter the column. When clicked, a filter pop-up menu appears. On the menu, the user selects the checkbox next to each property that will be included. The menus also contain filtering mechanisms suitable for the property types in the column as follows:
When finished, the user clicks Apply. The filter icon changes to an filter-on icon () indicating that a filter is applied to the column. You can use the Branding Wizard to replace the default icons. See Branding wizard — Layouts. Columns containing buttons, icons, and subsections cannot be filtered. In addition, the following property types cannot be filtered:
|
||||||||||
Show Details | Appears if edit mode is Read Only . Select to allow the user to click a row and display its flow action details beneath the row in read-only mode. The user can expand multiple rows. Enter the flow action in the Flow Action field. V6.2 GRP-2025 pashmUnavailable if source is Report Definition. Clicking a node opens the Report Viewer. |
||||||||||
Expand All | Appears if Show Details is selected. Select to display details for all rows when the user opens the form. V6.2 GRP-2025 pashm | ||||||||||
Sorting | Select to allow users to sort on a column in the grid. This setting applies to all columns. You can disable sorting for individual columns by clearing the Enable Sorting checkbox in a column's Cell Properties panel. Sorting is not available for columns containing Value Lists , Page Groups , images, or controls.
Unavailable if source is Report Definition. If enabled, a tool tip appears at runtime, when the user hovers the mouse pointer over the column header. The user can alternate the sort order (ascending/descending) by clicking the header. Icons indicating ascending sort () and descending sort () appear to the right of the header label. You can use the Branding Wizard to replace the default icons. See Branding wizard — Layouts. Sorting is performed on all rows in the tree grid. If paging is enabled and the user changes the sort order, the tree grid view returns to the first page. |
||||||||||
Fixed Size | Appears if px-fixed is selected in the Width field on the Tree Grid Layout properties panel. Select this option to specify the maximum height and width of the layout. Further fields appear:
|
||||||||||
Open on double-click or Open leaf item on double click |
Appears if Edit Mode is For Report Definitions. Select so that when the user double-clicks a leaf item under a parent node, the item opens rather than the Report Viewer. V6.2 GRP-25625 pashm |
Advanced tab
ID | Optional. Provide an identifier for this Tree layout. Start with a letter, have no spaces, and include only alphanumeric characters, dashes, or underscores. |
Summary | Describe the data to be displayed. |
Refresh on Update | Appears if the Edit Mode is Modal Dialog . When checked, the entire layout is refreshed each time data is updated or submitted. |
Append Activity | Select or create an activity that runs when the user adds an entry. |
Delete Activity | Select or create an activity that runs when the user deletes an entry. |
Target for Edit |
Appears when edit mode is |
Select a column in the repeating section. Select the first column to display the Hierarchy Column properties panel. Select other columns to display the Label Column properties panels. The options you see depend upon the type of column.
Width | Specify the column width of this column in pixels. You can also adjust the width of a column directly:
The unlabeled Use at Runtime checkbox to the right of the width field is enabled by default and cannot be edited. This forces the Width value to be used by the browser at runtime, even when data values in this column or in other columns would otherwise cause the browser to present a wider or narrower column. Data values may sometimes wrap or appear truncated. |
Enable Sorting | Label Column panel only. Clear the checkbox to disable sorting on this column . This checkbox appears only if the Enable Sorting checkbox is selected on the Tree Grid panel (overrides global setting). |
Inline Style | Optional. Enter CSS code for an inline style for a cells in the column. For guided assistance in composing a style definition, click the magnifying glass icon () to open the Style Editor. You can select from predefined lists or type a style definition directly, and preview the results. |
Use Heading Styles | Select this option to display the cell values with the same style the column heading uses — changes the cell HTML element from <TD> to <TH>, with a resulting style change. |
Select the hierarchy control cell and open its properties panel.
Source
|
Select either a Property (default) or a list-type Report Definition as the data source. You cannot select a summary-type Report Definition. V6.2 GRP-23358 RD as tree grid source – pashm |
List/Group
|
If you specified Property , select the Page List or Page Group property as the data source. |
Applies To
|
If you specified Report Definition , select the Applies To key part of the rule. |
Report Definition
|
If you specified Report Definition , a list contains summery-type reports. select the Report Name key part of the rule.
|
General tab
Show +/- Icon | Select one of the available values. If you select Other Condition , the Condition field appears where you can specify or select the When rule that governs whether the row is to be visible. |
Icon | Specify the image to appear in the hierarchy control cell if you wish to replace the default image. |
Advanced tab
Defer Load Activity | In situations where loading all the data available might take a significant amount of time, you may choose to load only the data required by the current display. Select or specify in this field the activity to call to get further data when it is required. |
Right Click | Optional: Specify a the Name key part of a navigation rule that defines a context menu to appear when the user right-clicks a row in the grid. Such a menu can offer standard actions such as "Add After", "Delete", and so on. See About Navigation rules and Pega Developer Network article PRKB-26111 How to create context menus for grid layouts using navigation rules. |
Width | Specify the width of the column in pixels. Provides the same control as the Width setting in the Column properties panel. |
Height | Specify the height of the cell in pixels. Provides the same control as the Height setting in the Row properties panel. |
Inline Style | Open the Style Editor panel for this cell to override the stylesheet settings with local values. |
Use Heading Styles | Select to use the styles used in the heading row. |
Select either row in the repeating area and open its properties panel.
Height | Optional. Enter a positive number for the height in pixels of this cell. (At runtime, normal browser processing for rendering tables determines the actual displayed height.) You can also adjust the height of a row directly:
The unlabeled Use at Runtime checkbox to the right of the width field is enabled by default and cannot be edited. This setting forces the Height value to be used by the browser at runtime, even when data values in this column or in other cells would otherwise cause the browser to present a taller or shorter column. |
Inline Style | Open the Style Editor panel for this cell to override the stylesheet settings with local values. |
Make Header? | Select to display all the cell values in the row with the same style that the column heading uses. This is an alternative to individually selecting the Use Heading Styles checkbox for each column. This option is unchecked by default. |
Select the header cell in the repeating area and open its properties panel.
Value | Enter the title for the column. |
Label For | Select from the data source the field that will be rendered in the cells of this column. Normally this is the label or title of the item. |
General tab
Visible | Select one of the available values. If you select Other Condition , a field appears where you can specify or select the When rule that checks whether the column is to be visible. |
Required | Select to make the values in this column required. |
Wrap Text | Select to force the text in this column to wrap to additional lines if it is longer than the width of the column. |
Read Only | Select to make the cells in this column read-only. If you select it, a field appears where you can specify a When rule to govern when the cells in this column are to be read-only. |
Advanced tab
Width | Specify the width of the column in pixels. Provides the same control as the Width setting in the Column properties panel. |
Height | Specify the height of the cell in pixels. Provides the same control as the Height setting in the Row properties panel. |
Read-Write Style | Displays the stylesheet settings for this cell when editing is enabled. |
Read-Only Style | Displays the stylesheet settings for this cell when editing is disabled. |
Inline Style | Open the Style Editor panel for this cell to override the stylesheet settings with local values. |
Use Heading Styles | Select to display the cell values with the same style the column heading uses — changes the cell HTML element from <TD> to <TH>, with a resulting style change. |
Select a data cell in the repeating area and open its properties panel.
Property |
Identify the property in the data source this column displays.
This field does not appear if the value in the Control field contains an Action mode control rule such as pxButton. |
Control | Select a control rule to format the value in this cell. If left blank, the property uses the control rule (if any) in the Control field on the property rule form's General tab.
Many controls on the Basic and Advanced groups are associated with default control rules, which appear in this field when you drag and drop a control into the cell. For example, the Button control populates the field with pxButton, the Text Area control with pxTextArea, and so on. updated 10/20/10 pashm |
Behavior | Click the magnifying glass beside this field to display the Client Event Editor, where you can specify formatting conditions and actions for this field. See Implementing dynamic form actions and the Client Event Editor.
This field does not appear if the value in the Control field contains an Action mode control rule such as pxButton. |
General tab
Visible | Select one of the options presented. The default is Always . If you select Other Condition , the Condition field appears. Select or create the when rule that governs this cell's visibility. |
Required | Select to make this a required field if the user adds data to the display. |
Wrap Text | Select to force the text in this column to wrap to additional lines if it is longer than the width of the column. |
Read Only | Selected by default, which prevent edits to this field. You can refine this control by selecting or creating a when rule in the Read Only Condition field that appears when you select this option. |
Advanced tab
Width | Specify the width of the column in pixels. Provides the same control as the Width setting in the Column properties panel. |
Height | Specify the height of the cell in pixels. Provides the same control as the Height setting in the Row properties panel. |
Default Value | Specify a default value for this field. Click the magnifying glass beside it to display the Expression Builder, where you can select or create an expression to generate the default value. Leave the field blank if it does not require a default value. |
Read-Write Style | Displays the stylesheet settings for this cell when editing is enabled. |
Read-Only Style | Displays the stylesheet settings for this cell when editing is disabled. |
Inline Style | Open the Style Editor panel for this cell to override the stylesheet settings with local values. |
Use Heading Styles | Select to display the cell values with the same style the column heading uses — changes the cell HTML element from <TD> to <TH>, with a resulting style change. |
The delete icon appears at the right of the repeating row in this area, to indicate how and where it appears at runtime. Do not use it to attempt to remove cells or rows while editing the layout.
The Tree Grid layout has two action areas, one at the top and one at the bottom of the display.
You can use one or both. If you use both, configure each action area separately.
Select Action Top or Action Bottom, then display the properties panel. Select a column header and open its properties panel.
Visible When: | Optional. If the action area is only visible under certain circumstances, select or create a when rule. |
General tab
Not used.
Advanced tab
ID | Optional: Provide an identifier for this tree. Start with a letter, use no spaces, and include only alphanumeric characters, dashes, or underscores. |
Select a column in one of the action areas and open its properties panel.
Width | Specify the width of this column. Select the checkbox to the right of the field to lock the width to the value you have specified.
Clear the Use at Runtime checkbox (unlabeled) next to the width field to allow the browser at runtime to determine the width of this column based on the size of the column contents and the size of other columns. The width may vary from use to use depending on the contents of this cell and other cells. (When cleared, the generated HTML for this column includes a <TD> element with no WIDTH= attribute.) The Width value is used as you view the rule form, but not at runtime. For example, clear this checkbox if the cell is to contain a section rule that may be wide in some situations and narrow in others. Select the Use at Runtime checkbox to force the Width value to be used by the browser at runtime, even when data values in this column or in other columns would otherwise cause the browser to present a wider or narrower column. If checked, data values may sometimes wrap or appear truncated. |
Inline Style | Optional: Enter CSS code for an inline style for a cells in the column. For guided assistance in composing a style definition, click the magnifying glass icon () to open the Style Editor. You can select from predefined lists or type a style definition directly, and preview the results. |
Enable Sorting | Appears and selected by default if Sorting in the Tree Grid properties panel is selected. Clear the checkbox to disable sorting on this column. |
Use Heading Styles | Select to display the cell values with the same style as the column heading uses. This option changes the cell HTML element from <TD> to <TH>, with a resulting style change). |
Enable Filtering | Appears and selected by default if Filtering in the Tree Grid properties panel is selected. Clear the checkbox to disable filtering on this column. |
Select the row in the top or bottom action area and open its properties panel.
Height | Enter a positive number for the height in pixels of this cell.
Clear the Use at Runtime checkbox (next to the height field and (unlabeled) to allow the browser at runtime to determine the height of this row based on the size of the row contents and the size of other rows. The height may vary from use to use depending on the contents of this cell and other cells. (When cleared, the generated HTML for this column includes a <TD> element with no HEIGHT= attribute.) The Height value is used as you update the rule, but not at runtime. For example, clear this checkbox if the cell is to contain a section rule that may be tall in some situations and short in others. Select the Use at Runtime checkbox to force the Height value to be used by the browser at runtime, even when data values in this column or in other cells would otherwise cause the browser to present a taller or shorter column. |
Inline Style | Optional. Enter CSS code for an inline style for a cells in the column. For guided assistance in composing a style definition, click the magnifying glass icon () to open the Style Editor. You can select from predefined lists or type a style definition directly, and preview the results. |
Make Header? | Select to display all the cell values in the row with the same style that the column heading uses. This is an alternative to individually selecting the Use Heading Styles checkbox for each column. This option is unchecked by default. |
Add a control, property, or other section rule that is appropriate to the display and function of your data. Configure the section rule's properties by selecting it and then displaying the properties panel. For buttons, see Section and Flow Action forms — Adding a Button Control.