<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Populate dropdown based on previous dropdown value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-based-on-previous-dropdown-value/m-p/251100#M43271</link>
    <description>&lt;P&gt;I'm able to populate dropdown  based on previous dropdown value with passing that token.  But when ALL is selected in previous dropdown , i want "ALL" to appear in dependent dropdown without any values. Only when some value is selected, other dropdown should refresh accordingly.  &lt;/P&gt;

&lt;P&gt;How to achieve that.. ?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2017 09:14:08 GMT</pubDate>
    <dc:creator>k_harini</dc:creator>
    <dc:date>2017-01-24T09:14:08Z</dc:date>
    <item>
      <title>Populate dropdown based on previous dropdown value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-based-on-previous-dropdown-value/m-p/251100#M43271</link>
      <description>&lt;P&gt;I'm able to populate dropdown  based on previous dropdown value with passing that token.  But when ALL is selected in previous dropdown , i want "ALL" to appear in dependent dropdown without any values. Only when some value is selected, other dropdown should refresh accordingly.  &lt;/P&gt;

&lt;P&gt;How to achieve that.. ?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 09:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-based-on-previous-dropdown-value/m-p/251100#M43271</guid>
      <dc:creator>k_harini</dc:creator>
      <dc:date>2017-01-24T09:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown based on previous dropdown value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-based-on-previous-dropdown-value/m-p/251101#M43272</link>
      <description>&lt;P&gt;Hi k_harini,&lt;BR /&gt;
I don't know how is written your dropdown, but I think that in the first one you have ALL ("&lt;EM&gt;") as default value and you pass the choosen value (a single value or "&lt;/EM&gt;") to the second one.&lt;BR /&gt;
In the second dashboard, I think that you use the first dropdown choice as a filter in the search (e.g.: &lt;CODE&gt;mysearch $token$&lt;/CODE&gt;), and you have ALL ("*") as default value.&lt;BR /&gt;
In this way, if you have ALL in the first dropdown, you have ALL also in the second one, if instead you choose a value in the first dropdawn, you have in the second one the possibility to choose both ALL or a single value.&lt;BR /&gt;
In other word something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="My1" searchWhenChanged="true"&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;tag=mytag | dedup SS | table My1 | sort My1 &amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$Time.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$Time.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;My1&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;My1&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;prefix&amp;gt;My1="&amp;lt;/prefix&amp;gt;
  &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="dropdown" token="My2" searchWhenChanged="true"&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;tag=mytag $My1$| dedup My2 | table My2 | sort My2&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$Time.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$Time.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;My2&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;My2&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;prefix&amp;gt;My2="&amp;lt;/prefix&amp;gt;
  &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 09:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-based-on-previous-dropdown-value/m-p/251101#M43272</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-01-24T09:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dropdown based on previous dropdown value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-based-on-previous-dropdown-value/m-p/251102#M43273</link>
      <description>&lt;P&gt;Thank you so much for your response and the code.  I tried this.. Even then All values are getting populated wen i select 'All' in first drop down..  I just want to display 'All' and user should not have the ability to select other values from second drop down.  &lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Populate-dropdown-based-on-previous-dropdown-value/m-p/251102#M43273</guid>
      <dc:creator>k_harini</dc:creator>
      <dc:date>2017-01-24T11:17:04Z</dc:date>
    </item>
  </channel>
</rss>

