Dashboards & Visualizations

How to use two depends in same dashboard panel

hrs2019
Path Finder

Hello everyone ,
How to use two depends in same dashboard panel if i want to use
i want to use here both the *panel id for font-siz * and **panel depends for dropdown in same panel can any one help me out**

**#

My XML code

<form theme="dark">
  <label>Resize panal</label>
  <fieldset submitButton="false">
    <input type="dropdown" token="setid">
      <label>sst</label>
      <fieldForLabel>Area Nmae Details</fieldForLabel>
      <fieldForValue>Area Nmae Details</fieldForValue>
      <search>
        <query>| inputlookup raj100|table ApName "Area Nmae Details"</query>
        <earliest>0</earliest>
        <latest></latest>
      </search>
    </input>
  </fieldset>
  <row>
    <panel depends="$alwaysHideCSS$">
      <html>
      <style>
        #myTableStyle{
          font-size: 70% !important;
        }
      </style>
    </html>
    </panel>
    <panel id="myTableStyle">    <panel depends="setid">  **#i want to use here both the (panel id for **font-siz** and panel depends for **dropdown token**) in same panel  #**
      <table>
        <search>
          <query>| inputlookup raj100 FERD=$setid$|table ApName "Area Nmae Details" "Area CP Name" CLevel Date "Issue Description" "MD Name" PinID "Recommended Fix" "SC Title Name" Srate Task Title URL</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="count">4</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">none</option>
        <option name="percentagesRow">false</option>
        <option name="refresh.display">progressbar</option>
        <option name="rowNumbers">false</option>
        <option name="totalsRow">false</option>
        <option name="wrap">true</option>
      </table>
    </panel>
  </row>
</form>
0 Karma
1 Solution

niketn
Legend

@hrs2019 , it should look like the following instead of two separate <panel> sections.

<panel id="myTableStyle" depends="setid">

In your example seems like you need only one token dependency which as per your question should have been two. Nevertheless if you have multiple token dependency you can always add them as comma separated tokens. For example:

<panel id="myTableStyle" depends="token1,token2">

Please try out and confirm. If you have any other issue please add more details.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

hrs2019
Path Finder

yes it is working thanks again @niketnilay

0 Karma

niketn
Legend

@hrs2019 , it should look like the following instead of two separate <panel> sections.

<panel id="myTableStyle" depends="setid">

In your example seems like you need only one token dependency which as per your question should have been two. Nevertheless if you have multiple token dependency you can always add them as comma separated tokens. For example:

<panel id="myTableStyle" depends="token1,token2">

Please try out and confirm. If you have any other issue please add more details.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

niketn
Legend

@hrs2019 I have converted my comment to answer. If your issue is resolved please accept/up vote 🙂

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...