Dashboard component events
Summarize
Summary of Dashboard component events
The Dashboard component events feature in ServiceNow allows you to configure and customize actions triggered by various events within a dashboard. These events enable you to control navigation, data display, and interaction behaviors in dashboards, enhancing user experience and workflow integration.
Show less
Key Features
- Event Handlers Configuration: Select and add event handlers to dashboard events to define custom responses and actions linked to data resources displayed on dashboards.
- Navigate to Dashboard Overview Page: An event dispatched when the dashboard closes, redirecting to the dashboard library. You can customize the redirect route and title using a client script, enabling tailored navigation flows.
- Dashboard Widget Clicked: This event allows overriding the default drilldown behavior when a dashboard visualization is clicked. By disabling default drilldowns and adding a custom event handler, you can implement personalized drilldown logic via client scripts.
- URL Params Update Requested: Dispatched whenever URL parameters update during navigation, providing structured parameter data (such as dashboard sysid, tab sysid, and edit mode status). This enables implementation of custom navigation logic responsive to URL changes.
Practical Use for ServiceNow Customers
- Customize dashboard navigation and user interactions by modifying event handlers and client scripts.
- Implement tailored drilldowns from dashboard widgets to enhance data exploration aligned with your business processes.
- Leverage URL parameter events to synchronize dashboard state with browser navigation and support advanced user workflows.
- Ensure your instance uses the latest Platform Analytics experience application from the ServiceNow Store to access full functionality.
Select event handlers to configure the actions (events) provided with the dashboard component.
The Events tab shows the events used by the dashboard component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.
Event handlers
Event handlers work with data resources to link the dashboard actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.
Event descriptions
| Event | Description |
|---|---|
| Navigate to dashboard overview page | Dispatched when the dashboard is closed and redirects to the dashboard library. You can customize this behavior by changing the route and title in the Redirect to dashboard list client script. To open client
scripts, select the <> icon in the page's side bar.
|
| Dashboard Widget Clicked | Add this event handler if you want to override the default drilldown with custom behavior when a visualization on the dashboard is clicked. It uses the Dashboard Widget Clicked client script. To add a custom drilldown:
|
| URL params update requested |
Dispatched whenever the dashboard component would normally update URL parameters and delegateUrlParams is URL parameters:
All parameters have the following object fields:
The sysId parameter also has the following object fields:
Example:
For more information, see Dashboard URL parameter delegation. Note:
This functionality requires the latest Platform Analytics experience application from the ServiceNow® Store. |