Links may not function; however, this content may be relevant to outdated versions of the product.
Configuring a table for personalization
You can configure tables so that users can personalize table views. When you turn on table personalization, users can select a table and specify which columns to display, resize and reorder the columns, and set an initial sort order and initial column filter. After users save their personalized table settings, the table displays their saved settings each time that they access it.
To configure a table for personalization, complete the following steps:
Activating table personalization
Activate the personalization feature for the table so that users can personalize a table at run time.
- In the Dev Studio header search field, search for and select the section that contains the table that you want to configure for personalization.
- Click the View properties icon in the table header to open the Layout Properties dialog box.
Layout properties dialog box - In the Table preference section on the General tab of the Layout Properties dialog box, complete the following steps:
- Select the Allow check box next to Optimize code.
- Select the Allow check box next to Personalize table.
- Optional: Select the Save personalization automatically check box.
- Click
Specifying column visibility
After you turn on the personalization feature for a table, you can specify which columns are visible or hidden by default, and you can lock columns so that they cannot be hidden by users.
- In Dev Studio, open the section that contains the table that you previously configured for personalization.
- Click the View properties icon in the column header to open the Column Properties dialog box.
Column properties dialog box - On the Column Properties dialog box, select one of the Visibility on table check boxes.
- Click .
Modifying the Customize table button
By default, the
button opens a dialog box in which users can select which columns to display in the table. You can modify the button so that it opens the column selection options in an overlay format instead of in a dialog box. You can also customize the appearance of the button.- In the Dev Studio header search field, search for and select the pyGridPersonalizeActions section.
- Click pyGridPersonalizeActions section to your application ruleset in the class where the table is available. to save the
- Click the View properties icon next to the button.
- On the Cell Properties dialog box, click the Actions tab.
Cell properties dialog box - In the Add an action section of Action set 1, click the Down arrow next to Local Action.
- In the Target field, select Overlay.
- In the Overlay Format field, enter pyOverlayTemplate.
- Click
- In the Dev Studio header search text field, search for and select the pyOverlayTemplate section.
pyOverlayTemplate section - Click pyOverlayTemplate to your application ruleset in the Pega-UI-Component-Grid-filter class. to save the
- In the Dev Studio header search text field, search for and select the pyModalTemplatePersonalize section.
pyModalTemplatePersonalize section - On the pyModalTemplatePersonalize section form, copy the Dynamic Layout section containing the button and paste it into the pyOverlayTemplate section.
- Click the View properties icon next to the button.
- On the Cell Properties dialog box, click the Actions tab.
Cell properties dialog box - Click the Down arrow next to Run Script.
- In the Function Name field, enter “doModalAction”.
- Click .