Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring a React table in a section

Updated on December 13, 2022

Define the looks and behavior of a React table in a section to benefit from the features of React tables and help users interact with data more efficiently. For example, you can configure your table to support filtering, sorting, and custom presentation options. You can also define data sources and configure preset views for the table.

Before you begin: Prepare the configurable components:
  1. In the navigation pane of Dev Studio, click Records.
  2. Expand the User Interface category, and then click Section.
  3. Open the section that holds the pxListView embedded section that you want to edit.
  4. In the header of the embedded section, click the View properties icon.
  5. On the Parameters tab, in the Data page field, select the data page from which you want to source the list contents.
  6. In the Display name field, enter the name for the view, and then define how you want to present the data to the user:
    ChoicesActions
    TableIn the Template list, select Table.
    Tile-based gallery
    1. In the Template list, select Gallery.
    2. In the Card header list, select the field that you want to use as the header for your tile.
    3. In the Secondary text field, select the field that you want to use as the source of additional text on your tile.
  7. 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.
  8. Optional: To define the data that you want to display in the table, set one or more filters:
    1. In the Filter by list, select Custom, and then click the Properties icon.
    2. 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.
  9. Optional: To sort the values in the table, perform the following configurations:
    1. In the Sort by list, click Add, and then select the field by which you want to sort the values in the table.
    2. In the list next to the property field, select the order in which you want to sort the table.
  10. Optional: To group the table contents by property, in the Group by list, add a property by clicking Add, and then select the target field.
  11. Optional: To define additional table behavior, in the User Personalization section, select the check boxes for the features that you want to use.
    For example: To give users the tools to hide table columns, select Allow user edit column visibility.
  12. If you apply parameters to the source data page, in the Data source parameters field, map the parameters to the properties that you use in the table.
    For example: In the mapping: WorkItemId=.pyID, the WorkItemId parameter on the source data page is mapped to the .pyID property, which defines the ID of the current work item.
  13. Optional: To add a new view to the table, under the data source list, next to the Default view tab, click Add, and then repeat steps 6 through 11.
  14. Click Submit.
  15. On the section form, click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us