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!!!"
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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