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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...