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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...