Dashboards & Visualizations

How to dynamically hide a dashboard panel based on drill-down selection?

akankshayadav
Path Finder

I am able to show the panel using drilldown by <panel depends="$token_file$".
But how can i hide the panel when work is done. Is there any approach?

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

To hide the panel, you need to unset the token (or set it to null which amounts to the same thing). The way I have done it in some instances, is to leverage the drilldown of the displayed panel to unset the token.

0 Karma

akankshayadav
Path Finder

what should be the code?
below is my code for setting the token in drilldown

akankshayadav_0-1622535779293.png

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

ITWhisperer_0-1622537031849.png

 

0 Karma

akankshayadav
Path Finder

applying this , i cannot get  my drilldown panel when i click on the token.

my question is .. when i click on the file i see the panel connected by drill down. now i need a dynamic way to remove it so that , the panel disappears. and if i click again on the file then the drilldown should work and show the panel 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You need this in the drilldown of the panel that opens i.e. the first drilldown shows the panel with the table, the drilldown from that table hides itself - it sounds like you replaced your existing drilldown instead of adding the drilldown to the other panel

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...