Configuring list views
Help users access and compare data with lists. Use tables, timelines, and tile galleries in your applications as a flexible basis for users to process large amounts of information. For example, tables in a price comparison application can help users efficiently identify the best offer.
You can also configure views to support editing, sorting, and custom presentation options.You can find list views in the views pane on the User Interface tab of a case. Data objects do not use list views.
Configuring tables
Present large amounts of information in a clear and consistent way by using tables. Tables are flexible and familiar user interface components, and provide a reliable basis for users to view or compare information.
- In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
- On the User interface tab, click the list that you want
to edit.
- In the Data page field, select the data page from which you want to source the list contents.
- In the Display name field, enter the name for the view.
- In the Template field, select Table.
- In the Columns section, add the columns that you want to
include in the view by clicking Add, and then select the
field that you want to associate with the column.
- In the Column to take up remaining width, define which column stretches to fill free space in your table.
- Optional: To define what data is displayed in the table, set one or more filters:
- In the Filter by list, select Custom, and then click the Properties icon.
- In the Condition Builder window, define the
expression that you want to use to filter the table contents.For more information, see Using conditional logic in Cosmos React.
- Define how the application sorts data in the table:
- In the Sort by list, add the property by which you want sort the list by clicking Add, and then selecting the field that you want to use as a filter.
- In the list that appears next to the property field, select the order in which you want to sort the table.
- Optional: To group the table contents by a property, in the Group by list, add the property by which you want group the table by clicking Add, and then selecting the target field.
- In the Max height (rows) list, select the maximum height of the list view.
- Optional: To enable bulk processing of list items, select the Allow bulk
actions checkbox.
- Optional: To define additional table behavior, select any of the checkboxes in the Editing and User Personalization section.
- Optional: To add a new view to the list, under the data source list, next to the Default view tab, click Add, and then repeat steps 5to 13
- Click Save.
Configuring galleries
Automate the display of repetitive data records with a tiled gallery. For example, you can use a gallery template to arrange data about pending mortgages into a series of standardized cards that display the name, mortgage amount, and an case ID of each application.
- In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
- On the User interface tab, click the list that you want to edit.
- In the Data page field, select the data page from which you want to source the list contents.
- In the Display name field, enter the name for the view.
- In the Template field, select Gallery.
- In the Card header list, select the field that you want to use as the header for your tile.
- In the Secondary text field, select the field that you want to use as the source of additional text on your tile.
- In the Columns section, add the columns that you want to
include in the view by clicking Add, and then select the
field that you want to associate with the column.
- In the Column to take up remaining width, define which column stretches to fill free space in your table.
- Optional: To define what data is displayed in the table, set one or more filters:
- In the Filter by list, select Custom, and then click the Properties icon.
- In the Condition Builder window, define the
expression that you want to use to filter the table contents.For more information, see Using conditional logic in Cosmos React.
- Define how the application sorts data:
- In the Sort by list, add the property by which you want sort the list by clicking Add, and then selecting the field that you want to use as a filter.
- In the list that appears next to the property field, select the order in which you want to sort the table.
- In the Max height (rows) list, select the maximum height of the list view.
- Optional: To define additional gallery behavior, select any of the checkboxes in the User Personalization section.
- Optional: To add a new view to the list, under the data source list, next to the Default view tab, click Add, and then repeat steps 4 to 12.
- Click Save.
Configuring a timeline
Provide users with insight into your business process by displaying data in chronological order. A timeline view presents a progression of events that is sourced from a data page that includes information about the time and the nature of the event.
For example, in a loan application, you can use a timeline view to present the employment history of the applicant, arranged in reverse chronological order, with the current employer displayed first.- In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
- On the User interface tab, in the List section, click the view that you want to edit.
- In the Data page list, select the data page from which you want to source the list contents.
- In the Display name list, enter a name for the view.
- In the Template list, select Timeline.
- In the Date list, select the Date Time field that holds the information about the time of the event.
- In the Title list, select the field that holds the description of the event and appears as the heading for the timeline entry.
- Optional: To define additional timeline settings, perform the following actions:
- To add an icon to each timeline entry, in the
Icon list, select the property that holds the
icon reference.
- To add a status indicator, in the Status list, select the property that holds the status reference.
- To add fields to a collapsible section inside each event, in the Additional fields section, click Add, and then select the target fields.
- To add an icon to each timeline entry, in the
Icon list, select the property that holds the
icon reference.
- In the Date grouping list, define the time period by which you want to sort the entries.
- In the Filter by list, define whether you want to filter
the entries.For more information, see Using conditional logic in Cosmos React.
- In the Sort by list, define the order in which the
timeline displays the entries.
- Optional: To add a new view to the list, under the data source list, next to the Default view tab, click Add, and then repeat steps 5 to 11.
- Click Save.
Reordering records on lists
Help users edit records in a data object by making table rows draggable. For example, in a customer service application, you can use this feature to provide users with convenient tools to reshuffle the priority of outstanding work.
Pega Platform comes with an out-of-the-box pyMoveRecords data transform in which you can define the logic that you want the application to apply when the user drags a table row. In the case of the customer service application, you can set up a logic that increases the priority of work items when they move up in the list.
- In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
- On the User interface tab, in the Lists section, select the list that you want to edit.
- In the Editing section, select the Allow moving records checkbox.
- In Dev Studio, search for and open the pyMoveRecords data transform.
- On the pyMoveRecords tab, click Save as.
- On the New tab, in the Apply to field, enter the class of the data list that you use to provide records to your table.
- Click Create and open.
- In the class-specific pyMoveRecords rule that you created,
on the Definition tab, define what the application does
when the user changes the order of table rows.For more information on composing data transforms, see Data transforms.
- In the rule form, click Save.
Enabling moving records in App Studio
Adding the pyMoveRecords data transform to the data list class in Dev Studio
Editing the data transform
Available columns
When you configure tables, the configuration of the data page from which you source the table content determines the list of fields that you can include in the table as columns.. By understanding the characteristics and limitations of each data page configuration, you can build better table views.
Data page with a report definition
If the data page that you use to source table content uses a report definition, you can add the following fields to your table:
- Basic fields that you add as columns on the backing report if the fields are optimized for reporting and marked as relevant records for the current class.
- Embedded properties from pages (single page properties) that you add as columns to the backing report if the properties are optimized for reporting and marked as relevant records for the current class.
- Properties from associations rules that you add as columns to the backing report if the association rule is a simple association and the properties are optimized for reporting and marked as relevant records for the current class. The complex version of the association rule form is not supported.
The data page with a report definition cannot support the addition of the following types of fields to tables:
- Fields that are specified in the backing report that require complex associations or joins that are specified in the report definition.
- Embedded properties from page lists.
- Embedded properties from page groups.
Data page without a report definition
If you source table content from a data page without a report definition, you can dd only basic fields to your table.
The data page without a report definition cannot support the addition of the following types of fields to tables:
- Embedded properties from pages.
- Embedded properties from page lists.
- Embedded properties from page groups.
- Properties from association rules.
Previous topic Configuring case and object views Next topic Configuring forms