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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...