Customizing the list of recent items in your application

You can customize the recent items list in your application by changing the content, style, or the number of items on the list.

The pxRecent section, which you included in your application to display the recent items list, is a final rule and cannot be modified. It contains the pxRecentGrid section, also a final rule, which has a table layout, defines how the recent items list is displayed, and refers another section for displaying a recent items label. To customize the recent items list, complete the following steps:

  1. Save a copy of the pxRecent and pxRecentGrid sections in your ruleset.

    1. Enter pxRecent in the Designer Studio Search bar, and then press Enter.

    2. In the Search results, select the pxRecent section.

    3. In the pxRecent section, click Save as.

    4. Enter a label for the new section. The label cannot start with px, py, or pz.

    5. Specify the Applies To class and ruleset into which you want to save the section.

    6. Click Create and open.

    7. Click Save to save the section.

    8. Repeat steps a through g for the pxRecentGrid section.

  2. Replace the original pxRecentGrid section in your copy of pxRecent section.

    1. Open your copy of the pxRecent section.

    2. Click the Gear icon in the Section Include layout header of the pxRecentGrid section to open the Layout Properties panel.

    3. In Section field on the General tab, enter the name of your copy of the pxRecentGrid section.

    4. Click Submit.

    5. Click Save to save a section.

  3. Ensure that your copy of the pxRecent section is configured to automatically refresh whenever a new item is added to the recent items list, deleted from the list, or updated.

    1. In the copy of the pxRecent section, click the Gear icon in the Section Include layout header of the pxRecentGrid section to open the Layout Properties panel.

    2. Ensure that Declare_pzRecentsCache.pxUpdateDateTime is entered in the Refresh condition field.

  4. Replace the original pxRecent section that is included in your section that displays the recent items list.

    1. Open your section that displays the recent items list.

    2. Click the Gear icon of the cell in the section to open the Cell Properties panel.

    3. In the Section field on the General tab, enter the name of your copy of the pxRecent section.

    4. Click Submit.

    5. Click Save to save a section.

  5. You can modify your copy of the pxRecentGrid section in the following ways: