Quick start: Creating a dashboard template
A dashboard is a part of the user interface that contains one or more widgets grouped into slots arranged within a template. A template is an arrangement of slots. Each slot can have multiple (or no) widgets assigned to it. Widgets contain controls that the user can configure.
Use this tutorial to create a personalized dashboard template in Designer Studio for displaying case data in an application. An example configuration is also included.
Before getting started, you must enable dashboard personalization for your portal. The Customize dashboard icon is displayed at the top of the screen for users who have the privilege for pxDashboard. You should also add the section pxUserDashboard if the Customize dashboard icon is not displayed.
Choosing a default template
The Pega 7 Platform includes several default templates that require no setup.
To select an existing template at run time:
- Click the Customize dashboard icon to display the Edit dashboard panel.
- Click Switch template.
- Select the template that you want to use.
Default templates available in the Pega 7 Platform
Creating a customized template
To create your own dashboard template, complete the following steps:
- Create a section for your template by clicking
- In the Apply to field, reference the class that you want in your application.
- Click Create and open.
In this set of instructions, you want each dynamic layout that you add to represent a slot for assigning widgets.
- Add dynamic layouts to the section to match the layout that you want.
- Drag the section pxUserDashboardSlot into each dynamic layout (slot) so that you can place widgets.
- Change Page context to Use clipboard page.
- Use .pxUserDashboard.pySlots(x) for the Clipboard page, where x represents the slot number.
- Add the name of your section.
- Optional: You can customize the direction of your widgets by including a section parameter, or you can leave this field blank to stack your slots by default.
Slot orientation options are case-sensitive and include:
- stacked (default)
- Click OK, and then save your changes.
Identify the type of section that you are creating and configure its settings.
- From the Settings tab, select Dashboard template.
- Enter a title and, optionally, an icon for your template.
- Click Save.
You have successfully created a dashboard template. From the Case Manager portal, select the Settings icon to view your new template at run time.
For a guided walkthrough of adding widgets to your template, see Quick start: Creating a dashboard widget.
Now that you know the basics of setting up a template, get the most out of your customized dashboards by viewing Section form - Completing the Settings tab. From here, you can obtain additional information about: