Dashboards & Visualizations

How to change the dashboard filter value from a custom visualization?

chanst2
Path Finder

I am trying to build a custom visualization with a fancy table-like object showing a city name with some related information. What I would like to do is to be able to click the cell with city name and then change the dashboard filter value to that city name, so that other panels of the dashboard can refresh with data about that city accordingly.

What code should I put in the javascript source of the custom visualization (some event handling code, I believe) in order to change the dashboard token? and whether I need to change the javascript of the simple XML too?

Thanks.

0 Karma
1 Solution

chanst2
Path Finder

Already got the solution be referring to the Token Links example in the Splunk 6.x Dashbaord Examples.
Just have to set the form.TOKENNAME instead of a simple TOKENNAME.
Thanks.

View solution in original post

chanst2
Path Finder

Already got the solution be referring to the Token Links example in the Splunk 6.x Dashbaord Examples.
Just have to set the form.TOKENNAME instead of a simple TOKENNAME.
Thanks.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...