Dashboards & Visualizations

How to unset all tokens at once

Gasparzinho
Engager

I have dropdown with 100 values so-so (the values come from a CSV file), clicking on each of these should open up a different panel and hide the others. Is there a way to do it without having to unset the other 99 for each single value?

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

In your dropdown change event, set each token based on the result of an appropriate mvfind

<eval token="DisplayPanel1">mvfind('form.panelstodisplay',"DisplayPanel1")</eval>

 mvfind will return null if the value is not selected, which is the same as unsetting the token

View solution in original post

Gasparzinho
Engager

You are the best, thank you very much

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

In your dropdown change event, set each token based on the result of an appropriate mvfind

<eval token="DisplayPanel1">mvfind('form.panelstodisplay',"DisplayPanel1")</eval>

 mvfind will return null if the value is not selected, which is the same as unsetting the token

View solution in original post

Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!