<?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 Dropdown values are not shown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56606#M2989</link>
    <description>&lt;P&gt;My sample file:&lt;/P&gt;

&lt;P&gt;State , District , Total Enrolments &lt;BR /&gt;&lt;BR /&gt;
Andaman_and_Nicobar_Islands, Andamans,116866&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
Andaman_and_Nicobar_Islands, Port_Blair,2&lt;BR /&gt;&lt;BR /&gt;
Andhra_Pradesh, Hyderabad,5004246&lt;BR /&gt;&lt;BR /&gt;
Andhra_Pradesh, Ananthapur,92&lt;BR /&gt;&lt;BR /&gt;
Arunachal_Pradesh, West_Kameng,143&lt;BR /&gt;&lt;BR /&gt;
Arunachal_Pradesh, Lohit,77&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I have to get State values in dropdown based on selection, District and enrol values have to show.&lt;/P&gt;

&lt;P&gt;My advanced XML form shown below:&lt;/P&gt;

&lt;P&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;BR /&gt;
&lt;/P&gt;&lt;FORM&gt;&lt;BR /&gt;
    &lt;LABEL&gt;Dropdown List For States&lt;/LABEL&gt;&lt;P&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!-- define master search template, with replacement tokens delimited with $ --&amp;gt;
&amp;lt;searchTemplate&amp;gt;index="states_index" series=$series$ | table "District", "Total_Enrolments"&amp;lt;/searchTemplate&amp;gt;

&amp;lt;fieldset&amp;gt;
    &amp;lt;!-- Define a simple dropdown form driven by a search --&amp;gt;
    &amp;lt;input type="dropdown" token="series"&amp;gt;
        &amp;lt;label&amp;gt;Select State&amp;lt;/label&amp;gt;
        &amp;lt;populatingSearch fieldForValue="series" fieldForLabel="series"&amp;gt;&amp;lt;![CDATA[index="states_index"  | dedup State | table State | sort +State]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
        &amp;lt;choice value="*"&amp;gt;Any&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;

&amp;lt;row&amp;gt;
    &amp;lt;!-- output the results as a 50 row events table --&amp;gt;
    &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Matching events&amp;lt;/title&amp;gt;
        &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
    &amp;lt;/table&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;&lt;/FORM&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:29:10 GMT</pubDate>
    <dc:creator>SrinivasaC</dc:creator>
    <dc:date>2020-09-28T13:29:10Z</dc:date>
    <item>
      <title>Dropdown values are not shown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56606#M2989</link>
      <description>&lt;P&gt;My sample file:&lt;/P&gt;

&lt;P&gt;State , District , Total Enrolments &lt;BR /&gt;&lt;BR /&gt;
Andaman_and_Nicobar_Islands, Andamans,116866&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
Andaman_and_Nicobar_Islands, Port_Blair,2&lt;BR /&gt;&lt;BR /&gt;
Andhra_Pradesh, Hyderabad,5004246&lt;BR /&gt;&lt;BR /&gt;
Andhra_Pradesh, Ananthapur,92&lt;BR /&gt;&lt;BR /&gt;
Arunachal_Pradesh, West_Kameng,143&lt;BR /&gt;&lt;BR /&gt;
Arunachal_Pradesh, Lohit,77&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I have to get State values in dropdown based on selection, District and enrol values have to show.&lt;/P&gt;

&lt;P&gt;My advanced XML form shown below:&lt;/P&gt;

&lt;P&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;BR /&gt;
&lt;/P&gt;&lt;FORM&gt;&lt;BR /&gt;
    &lt;LABEL&gt;Dropdown List For States&lt;/LABEL&gt;&lt;P&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!-- define master search template, with replacement tokens delimited with $ --&amp;gt;
&amp;lt;searchTemplate&amp;gt;index="states_index" series=$series$ | table "District", "Total_Enrolments"&amp;lt;/searchTemplate&amp;gt;

&amp;lt;fieldset&amp;gt;
    &amp;lt;!-- Define a simple dropdown form driven by a search --&amp;gt;
    &amp;lt;input type="dropdown" token="series"&amp;gt;
        &amp;lt;label&amp;gt;Select State&amp;lt;/label&amp;gt;
        &amp;lt;populatingSearch fieldForValue="series" fieldForLabel="series"&amp;gt;&amp;lt;![CDATA[index="states_index"  | dedup State | table State | sort +State]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
        &amp;lt;choice value="*"&amp;gt;Any&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;

&amp;lt;row&amp;gt;
    &amp;lt;!-- output the results as a 50 row events table --&amp;gt;
    &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Matching events&amp;lt;/title&amp;gt;
        &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
    &amp;lt;/table&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;&lt;/FORM&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56606#M2989</guid>
      <dc:creator>SrinivasaC</dc:creator>
      <dc:date>2020-09-28T13:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown values are not shown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56607#M2990</link>
      <description>&lt;P&gt;That doesn't look like Advanced XML to me, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/AdvancedFormSearch"&gt;http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/AdvancedFormSearch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2013 23:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56607#M2990</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-09T23:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown values are not shown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56608#M2991</link>
      <description>&lt;P&gt;Im Sorry Im working on forms.&lt;BR /&gt;
Thanks Martin, &lt;BR /&gt;
I have followed as example given in the Splunk UI Examples(form_dropdown.xml).&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2013 04:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56608#M2991</guid>
      <dc:creator>SrinivasaC</dc:creator>
      <dc:date>2013-03-10T04:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown values are not shown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56609#M2992</link>
      <description>&lt;P&gt;I can able to get results when I click on search button. but in dropdown, I'm unable to retrieve States.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2013 06:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56609#M2992</guid>
      <dc:creator>SrinivasaC</dc:creator>
      <dc:date>2013-03-10T06:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown values are not shown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56610#M2993</link>
      <description>&lt;P&gt;You've left a few things in the XML set to the values from the example, . &lt;/P&gt;

&lt;P&gt;The examples all use a "series" field, whereas here you want it to pull from a field called "State". &lt;/P&gt;

&lt;P&gt;You've got &lt;CODE&gt;series=$series$&lt;/CODE&gt; in your search, when you want to have &lt;CODE&gt;State="$State$&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;You also have &lt;CODE&gt;token=series&lt;/CODE&gt;,  which is what tells the system you want to use $series$ in your searches to identify the token.  You want to change that to &lt;CODE&gt;token="State"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You then have &lt;CODE&gt;fieldForValue="series" fieldForLabel="series"&lt;/CODE&gt;.    This tells the dropdown to look for it's values in a field called &lt;CODE&gt;series&lt;/CODE&gt;, which of course wont be there. Change those both to be &lt;CODE&gt;State&lt;/CODE&gt;. &lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2013 17:02:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56610#M2993</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-03-10T17:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown values are not shown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56611#M2994</link>
      <description>&lt;P&gt;Thanks sideview&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 04:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-values-are-not-shown/m-p/56611#M2994</guid>
      <dc:creator>SrinivasaC</dc:creator>
      <dc:date>2013-03-11T04:34:19Z</dc:date>
    </item>
  </channel>
</rss>

