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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...