Dashboards & Visualizations

Can I dynamically connect a selected item in drop down to tab/button?

selination
New Member

Hi, 

Dashboard help is needed. I am attaching pictures. Please provide SPL. 

  1. I need to connect dynamically an item selected from the "Year OA Motives" drop-down to the tabs/buttons below (SPL needed). 
  2. By Clicking each tab will open up a table containing the corresponding data in a panel below the tabs (SPL neeeded).

Dashboard_SplunkCommunity.jpg

Regards,
Selina.

Labels (1)
0 Karma

selination
New Member

Thank you so much for your prompt reply, Giuseppe! 

How do I write the SPL to do that or put it in the source code?
How do I put it in the source code to populate those access controls?

Thanks.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @selination,

the token name arrives from the dashboard dropdown input.

The drilldown must be configured by GUI or by code.

please share the code of your dashboard, not all, only the input to use and one button sections.

Ciaol.

Giusepep

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @selination,

you have to pass the token from the dropdown to the drilldown links in each button.

In other words, if the token name is "year", to each drilldown link you have to add 

year=$year$

in other words, something like this:

<drilldown>
   <link>secondary_dashboard?year=$year$</link>
</drilldown>

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...