Add a drilldown event to a data visualization on a technical dashboard
Technical dashboards do not support preconfigured destinations for drilling down from a data visualization. If you want a viewer to open a more detailed view of the data when they interact with a visualization, configure a custom drilldown event.
Avant de commencer
Role required: ui_builder_admin, rights to edit a technical dashboard
Procédure
Drilldown for a table data source
You have a vertical data visualization that shows the number of records on the Incident [incident] table grouped by Priority. When a viewer interacts with this visualization, you want it to open a list of Incident records in the Platform Analytics experience.
- You follow Steps 1-8 in the general procedure, so you now have the configuration open for the Advanced dashboards - Redirect event handler for your vertical bar visualization.
- In the Context field, you select Edit.
- In the editing dialog, you select the object JSON type.
- You select Add property and enter path as the property name and now/platform-analytics-workspace as the property value. These values specify that the
viewer drills down to the Platform Analytics experience.
- You select Apply and move on to the next field.
- In the Route field, you enter simplelist. This route leads to the simplelist page in the Platform Analytics experience.
- For the Route fields, you first choose to bind data.
- Then you add the property {table: @payload.params.table} to the field. This property passes the name of the table in your visualization to the simplelist page of the Platform Analytics experience.
- You select the Event payload property params and then table.
- You double-click, drag and drop, or select the arrow to add the property to the upper area of the editor.
- Double-click on the property in the upper area of the editor to open it for editing.
- You surround the
@payload.params.tableproperty with curly brackets and add the table: property. - You select Apply.
- You select the Event payload property params and then table.
- Similarly, you choose to bind data for the Optional parameters field and set the value {query:@payload.params.concatenatedQuery}.
| Field | Value |
|---|---|
| Context | {path:now/platform-analytics-workspace} |
| Route | simplelist |
| Route fields | {table:@payload.params.table} |
| Optional parameters | {query:@payload.params.query} |
Drilldown for an indicator data source
You have a Line data visualization for the indicator Number of open incidents. When a viewer interacts with this visualization, you want it to open the KPI Details page for that indicator.
- You repeat steps 1-5 from the Table data source example, because in this case too you are drilling down to a page on the Platform Analytics experience.
- For the Route, you enter ac_kpi_details.
- For the Route fields, you first choose to bind data
. Then you enter {uuid: @payload.params.indicatorSysid}. This parameter passes the id of the indicator, in this case Number of open incidents, to the Platform Analytics experience KPI Details page.
Conseil :First use autocomplete to add the data parameter @payload.params.indicatorSysid, then surround that parameter with curly brackets and add uuid:.The properties of your Advanced dashboards - Redirect event handler now appear as follows:Field Value Context {"path":"now/platform-analytics-workspace"} Route ac_kpi_details Route fields {uuid:@payload.params.indicatorSysid} - No other parameters are necessary, so you select Add and then Save the UI Builder page.