Portal Dashboard

Introduction

Portal Dashboard is a flexible page where you can add, remove and edit widgets and filters. Users can customize the layout just by dragging & dropping between multiple dashboards.

There is an easy way for users to predefine a lot of details for each dashboard, each widget such as predefined filters, columns, UI, and styles.

Available widgets of Portal dashboard are:

  • Task widget

  • Case widget

  • Process widget

  • Statistic widget

  • Custom widget

  • Process viewer widget

  • Welcome widget

  • News feed widget

You can predefine Portal dashboards, and details of each widget by configuring variable Portal.Dashboard.

Define Your Dashboard

Portal allows for multiple dashboards. They will be displayed as tabs.

You can predefine dashboard id, title, permissions to access, and widgets for each dashboard separately.

Below find a JSON example for the configuration of dashboards.

[
   {
      "id": "default-dashboard",
      "templateId": "template-id"
      "titles": [
         {
         "locale": "en",
         "value": "Dashboard"
         },
         {
         "locale": "de",
         "value": "Dashboard"
         }
      ],
      "widgets": [
         {
            "type": "task",
            "id": "task_10",
            "layout": {
               "x": 0, "y": 0, "w": 10, "h": 9,
               "styleClass": "your-widget-class"
            }
         },
         {
            "type": "case",
            "id": "case_10",
            "layout": {
               "x": 0, "y": 10, "w": 10, "h": 9
            }
         }
      ]
   },
   {
      "id": "general-dashboard",
      "titles": [
         {
         "locale": "en",
         "value": "General Dashboard"
         }
      ],
      "permissions": ["Employee", "CIO", "#daniel"],
      "widgets": [
         {
            "type": "task",
            "id": "task_20",
            "layout": {
               "x": 0, "y": 0, "w": 10, "h": 9
            }
         }
      ]
   }
]

Structure of the JSON for each dashboard:

id: ID to identifying dashboard.

templateId: the key to identify the predefined template this dashboard is referring to.

titles: multilingual title of dashboard.

permissions: roles can access the dashboard.

Tip

If you don’t define permissions for a dashboard, every user can see it.

widgets: definition of widgets dashboard. There are four types of widget: task, case, process, and custom. Refer to the next sections to learn more about the configurations of each widget.

Warning

Widget id must be unique between dashboards.

Configure Dashboard Widgets

Below are details of the JSON configuration for each widget of the Portal dashboard. They will help you understand how to configure the widget efficiency.

Tip

To get an understanding of the JSON structure of the custom dashboard,

  • Refer to variables.Portal.Dashboard.json file in portal-developer-examples/resources/files project.

  • Copy to the corresponding application folder located in the designer.

    • e.g: AxonIvyDesigner9.3.0/configuration/applications/designer

  • Start the process Start Processes/CreateTestData/CreateTestDataForCustomizedDashboard.ivp in the portal-developer-examples project.

  • Open the new Portal dashboard to check the new custom layout.

To configure variables, refer to Axon Ivy Variables

Configure Dashboard Templates

Portal provides predefined dashboard templates to help users reduce time and complication when creating a dashboard. Users can quickly create a dashboard just by entering a few items such as dashboard name, choosing one of the predefined templates, and modifying details to fit their needs.

These templates are configurable using variable DashboardTemplates.json.