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

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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