Dashboards & Visualizations

Is it possible to have a checkbox to toggle hiding or showing panels/rows on a dashboard in Simple XML?

HattrickNZ
Motivator

Assuming I have a dashboard with multiple panels, is there a way to have some visible and some not?

  <form>
      <label>dashboard name</label>

        <fieldset autoRun="true" submitButton="false">
        <input type="checkbox" token="sourcetype_token" searchWhenChanged="true">
            <choice value="show">show</choice>
            <choice value="hide">hide</choice>
        </fieldset>

        <row>
            <panel>
                <chart>

                ...

                </chart>
            </panel>
        </row>
        <row>
            <panel>
                <chart>

                ...

                </chart>
            </panel>
        </row>
        <row>
            <panel>
                <chart>

                ...

                </chart>
            </panel>
        </row>
    </form>

currently this skeleton has the following view
check box
row1
row2
row3

Is there a way I can do the following:
check box
row1
row2 show/hide
row3 show/hide

with row 2 and 3 having the same control to toggle them from visible to hide?

I am looking to do this in simple XML.

0 Karma
1 Solution

woodcock
Esteemed Legend

You need the depends option for simple XML. Check out this excellent answer with example:

http://answers.splunk.com/answers/188709/how-to-display-dashboard-panels-dynamically.html

View solution in original post

woodcock
Esteemed Legend

You need the depends option for simple XML. Check out this excellent answer with example:

http://answers.splunk.com/answers/188709/how-to-display-dashboard-panels-dynamically.html

HattrickNZ
Motivator

tks that looks like a good starting point

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...