Configuring Multiple Grids/Views
This page explains how to configure multiple tabular views in a monitor. The views are based on the same data set—the monitor’s configured index. However, they can be restricted using filters, e.g., based on logical rules or permissions.
To enable multiple views for a monitor, the configuration parameter ` function_gridMultipleViews ` must be set to ` true `.
All other functions are then controlled via the parameter ` function_gridMultipleViewsConfig `.
Multiple Grids Configuration
The individual views are defined in the function_gridMultipleViewsConfig under views.
Each view has the following specifications:
-
id
A unique ID for the view.
Used to reference the view, e.g., in a dashboard widget -
title
Used as the title in the tab or header -
filter
Restricts the monitor data in the view -
organisation
Restrict visibility to organization(s) (optional) -
role
Limit visibility to role(s) (optional) -
right
Restrict visibility to permission(s) (optional)
Example
{
(...),
"views": [
{
"filter": {
"bool": {
"must_not": [],
"should": [],
"must": [
{
"match_all": {}
}
]
}
},
"id": "allView",
"title": "Gesamtansicht"
},
{
"filter": {
"bool": {
"must_not": [
{
"match_all": {}
}
],
"should": [],
"must": []
}
},
"id": "noView",
"role": [
"bpcAdmin"
],
"title": "Leer"
}
]
}
Initial view
Unless otherwise specified, the first view is always displayed first.
To change this behavior, specify a default view (defaultView) within function_gridMultipleViewsConfig.
This can refer directly to a view ID or be controlled via the user’s organizations/roles/permissions.
Referencing a View
{
(...),
"defaultView": "allView",
"views": [
{
"filter": {},
"id": "allView",
"title": "Gesamtansicht"
}
]
}
View by Organizations/Roles/Permissions
When organizations/roles/permissions are specified, the system searches for the first entry that matches the current user. The following order is checked: Organizations → Roles → Permissions. If no matching entry is found, the first defined view is used.
{
"defaultView": {
"organisation": {
"orgX": "allView",
"orgY": "noView"
},
"role": {
"bpcAdmin": "noView"
},
"right": {
"right1": "allView"
}
},
(...)
}