<?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 cannot get result in dropdown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/cannot-get-result-in-dropdown/m-p/147723#M8998</link>
    <description>&lt;P&gt;Hello Everyone,&lt;BR /&gt;
I have the following simple xml code but nothing is appearing in the dropdown. Please help me with the code.&lt;BR /&gt;
&lt;/P&gt;&lt;FORM&gt;&lt;BR /&gt;
  &lt;SEARCHTEMPLATE&gt; | dbquery "Finance Database" "select book_type_code from fa_deprn_periods"  book_type_code=$book_type_code$ | fields book_type_code&lt;/SEARCHTEMPLATE&gt;&lt;BR /&gt;
    &lt;FIELDSET&gt;&lt;BR /&gt;
        &lt;INPUT type="dropdown" token="book_type_code" /&gt;&lt;BR /&gt;
            &lt;LABEL&gt;Select series&lt;/LABEL&gt;&lt;BR /&gt;
            &lt;POPULATINGSEARCH fieldforvalue="book_type_code" fieldforlabel="book_type_code"&gt;&amp;lt;![CDATA[ | dbquery "Finance Database" "select book_type_code from fa_deprn_periods"]]&amp;gt;&lt;/POPULATINGSEARCH&gt;&lt;BR /&gt;
            &lt;CHOICE value="*"&gt;Any&lt;/CHOICE&gt;&lt;BR /&gt;
        &lt;BR /&gt;
    &lt;/FIELDSET&gt;&lt;BR /&gt;
&lt;/FORM&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:52:30 GMT</pubDate>
    <dc:creator>vikas_gopal</dc:creator>
    <dc:date>2020-09-28T15:52:30Z</dc:date>
    <item>
      <title>cannot get result in dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/cannot-get-result-in-dropdown/m-p/147723#M8998</link>
      <description>&lt;P&gt;Hello Everyone,&lt;BR /&gt;
I have the following simple xml code but nothing is appearing in the dropdown. Please help me with the code.&lt;BR /&gt;
&lt;/P&gt;&lt;FORM&gt;&lt;BR /&gt;
  &lt;SEARCHTEMPLATE&gt; | dbquery "Finance Database" "select book_type_code from fa_deprn_periods"  book_type_code=$book_type_code$ | fields book_type_code&lt;/SEARCHTEMPLATE&gt;&lt;BR /&gt;
    &lt;FIELDSET&gt;&lt;BR /&gt;
        &lt;INPUT type="dropdown" token="book_type_code" /&gt;&lt;BR /&gt;
            &lt;LABEL&gt;Select series&lt;/LABEL&gt;&lt;BR /&gt;
            &lt;POPULATINGSEARCH fieldforvalue="book_type_code" fieldforlabel="book_type_code"&gt;&amp;lt;![CDATA[ | dbquery "Finance Database" "select book_type_code from fa_deprn_periods"]]&amp;gt;&lt;/POPULATINGSEARCH&gt;&lt;BR /&gt;
            &lt;CHOICE value="*"&gt;Any&lt;/CHOICE&gt;&lt;BR /&gt;
        &lt;BR /&gt;
    &lt;/FIELDSET&gt;&lt;BR /&gt;
&lt;/FORM&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/cannot-get-result-in-dropdown/m-p/147723#M8998</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2020-09-28T15:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: cannot get result in dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/cannot-get-result-in-dropdown/m-p/147724#M8999</link>
      <description>&lt;P&gt;Please help...any solution..?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 14:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/cannot-get-result-in-dropdown/m-p/147724#M8999</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2014-02-12T14:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: cannot get result in dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/cannot-get-result-in-dropdown/m-p/147725#M9000</link>
      <description>&lt;P&gt;Finally I crack this and i did not believe it was just a silly mistake. I just mentioned field name in "" in the dbquery  which is "bookcode".So keep this in mind whatever you are mentioning in the fieldforvalue and fieldforlable should be similar to ur field name in dbquery that is it.&lt;BR /&gt;
here is my code &lt;/P&gt;

&lt;P&gt;&lt;FIELDSET&gt;&lt;BR /&gt;
        &amp;lt;!-- Define a simple dropdown form driven by a search --&amp;gt;&lt;BR /&gt;
        &lt;INPUT type="dropdown" token="bookcode" /&gt;&lt;BR /&gt;
            &lt;LABEL&gt;Select series&lt;/LABEL&gt;&lt;BR /&gt;
            &lt;POPULATINGSEARCH fieldforvalue="bookcode" fieldforlabel="bookcode"&gt;&lt;BR /&gt;
              &amp;lt;![CDATA[| dbquery "Finance Database" "select distinct book_type_code "bookcode" from  fa_deprn_periods where period_name='JAN-09' and book_type_code='CORPORATE USA'"  ]]&amp;gt;&lt;/POPULATINGSEARCH&gt;&lt;BR /&gt;
        &lt;BR /&gt;
    &lt;/FIELDSET&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/cannot-get-result-in-dropdown/m-p/147725#M9000</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2020-09-28T15:52:51Z</dc:date>
    </item>
  </channel>
</rss>

