All Apps and Add-ons

Toggle visibility of 2nd panel by clicking on first panel within dashboard

spammenot66
Contributor

The code below has the drilldown setup to display panel4 when i click on panel3, and will only hide panel4 if i click on a link from panel4. How do I change it so that when i click on panel3 it will either show or hide panel4 depending on the state of panel4. For example if i click on panel3 and panel 4 is currently displaying, it will hide. If i click on panel3 again, it should now display the hidden panel4.

<row>
    <panel>
      <title>Panel 3  </title>
      <single>
        <search>
          <query>|gentimes start=-1 | eval temp="Panel 3" | table temp</query>
          <earliest>0</earliest>
          <latest></latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">all</option>
        <drilldown>
          <condition match="boolPanel4 = true">           
                <set token="boolPanel4">true</set>
          </condition>
          <condition>               
                <unset token="boolPanel4"></unset>                
          </condition>            

        </drilldown>
      </single>
    </panel>
    <panel rejects="$boolPanel4$">
      <title>Panel 4</title>
      <single>
        <search>
          <query>|gentimes start=-1 | eval temp="Panel 4" | table temp</query>
          <earliest>0</earliest>
          <latest></latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">all</option>
        <drilldown>          
          <set token="boolPanel4">true</set>
        </drilldown>
      </single>
    </panel>
  </row>

Rmc06010
Explorer

Disregard my comment. This answer worked for me.

0 Karma

Rmc06010
Explorer

Also looking to implement this functionality. As there are no answers yet I am leaning toward this being impossible. Can someone at least confirm whether this can be done or not?

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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