Dashboards & Visualizations

How do I edit my Simple XML to have inputs in their own separate row in a dashboard?

HattrickNZ
Motivator

This is my skeleton of a dashboard with a fieldset with a sample input, followed by some panels with charts:

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

    <fieldset autoRun="true" submitButton="false">
    <input type="dropdown" token="label_name">
    <label>labelNAME:</label>
    <choice value="label1">label1</choice>
    <choice value="label2">label2</choice>
    <default>label1</default>
    </input>
    </fieldset>

    <row>
        <panel>
            <chart>

            ...

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

            ...

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

            ...

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

so this looks like:

input 
row with chart
row with chart
row with chart

What I want to do is have something like below, where I want the 2nd input to be in its own row. I do not want it to be in the same panel because this way the chart loses space to make way for the input.

input 
row with chart
row with chart
input
row with chart

Below is an example of me putting the input inside the panel, but as I said above, I do not want this. I want a way to have the input in its own row. Can anyone advise how this can be done?

&lt;row&gt;
        <panel>
    <input type="dropdown" token="label_name">
        <label>labelNAME:</label>
        <choice value="label1">label1</choice>
        <choice value="label2">label2</choice>
        <default>label1</default>
    </input>
            <chart>

            ...

            </chart>
        </panel>
    </row>
0 Karma
1 Solution

HattrickNZ
Motivator

This can be done as follows:

   <row>
         <panel>
     <input type="dropdown" token="label_name">
         <label>labelNAME:</label>
         <choice value="label1">label1</choice>
         <choice value="label2">label2</choice>
         <default>label1</default>
     </input>
            </panel>
     </row>

just put the inputs inside the opening and closing panel tags.

View solution in original post

HattrickNZ
Motivator

This can be done as follows:

   <row>
         <panel>
     <input type="dropdown" token="label_name">
         <label>labelNAME:</label>
         <choice value="label1">label1</choice>
         <choice value="label2">label2</choice>
         <default>label1</default>
     </input>
            </panel>
     </row>

just put the inputs inside the opening and closing panel tags.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...