<?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 Re: show overall data in table if  no option is selected in dropdown in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151236#M42381</link>
    <description>&lt;P&gt;You are Awsome jbrodsky_splunk &lt;BR /&gt;
I tried it with % and it works....yipieeeee&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2014 10:20:59 GMT</pubDate>
    <dc:creator>vikas_gopal</dc:creator>
    <dc:date>2014-02-19T10:20:59Z</dc:date>
    <item>
      <title>show overall data in table if  no option is selected in dropdown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151232#M42377</link>
      <description>&lt;P&gt;Please suggest  how to sow all records in the table if no option or record has been selected in the dropdown. Here is my code , rt now, table is blank initially and it shows data only when I select some value from dropdown.&lt;/P&gt;

&lt;FORM&gt;
  &lt;FIELDSET&gt;
        &lt;INPUT type="dropdown" token="bookcode" /&gt;
            &lt;LABEL&gt;Select series&lt;/LABEL&gt;
            &lt;POPULATINGSEARCH fieldforvalue="bookcode" fieldforlabel="bookcode"&gt;
              | dbquery "Finance Database" "select distinct book_type_code "bookcode" from  fa_deprn_periods"  &lt;/POPULATINGSEARCH&gt;
        
  &lt;/FIELDSET&gt;
  &lt;ROW&gt;
         &lt;TABLE&gt;
            &lt;TITLE&gt;Matching events&lt;/TITLE&gt;
            50
   &lt;SEARCHSTRING&gt; | dbquery "Finance Database" "select * from  fa_deprn_periods where BOOK_TYPE_CODE='$bookcode$' "&lt;/SEARCHSTRING&gt;  
        &lt;/TABLE&gt;
   &lt;/ROW&gt;
&lt;/FORM&gt;</description>
      <pubDate>Fri, 14 Feb 2014 15:46:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151232#M42377</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2014-02-14T15:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: show overall data in table if  no option is selected in dropdown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151233#M42378</link>
      <description>&lt;P&gt;You need to add a default value as a wildcard. There's a good example of this in the Splunk 6 Dashboard Examples app which is freely downloadable. Basically, after your "label" tags and before your "populating search" tags you will add this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
&amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You may also consider modifying your fieldset and input tags like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset autoRun="true" submitButton="false"&amp;gt;
&amp;lt;input type="dropdown" token="bookcode" searchWhenChanged="true"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 17:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151233#M42378</guid>
      <dc:creator>jbrodsky_splunk</dc:creator>
      <dc:date>2014-02-14T17:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: show overall data in table if  no option is selected in dropdown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151234#M42379</link>
      <description>&lt;P&gt;Thanks jbrodsky_splunk for the quick responce&lt;/P&gt;

&lt;P&gt;Actually I have already applied this thing and I took help from splunk example only but still table is blank with wild card or with "All" choice in dropdown .What I understood out of this is since table is base on a query which is further dependent on dropdown option ,now "All" is nowhere in the data which is a kind of mismatch that is why table is blank or showing no record.....as you suggested I have changed my code to &lt;BR /&gt;
&lt;/P&gt;&lt;FORM&gt;&lt;BR /&gt;
     &lt;FIELDSET autorun="true" submitbutton="false"&gt;&lt;BR /&gt;
        &lt;INPUT type="dropdown" token="bookcode" searchwhenchanged="true" /&gt;&lt;BR /&gt;
            &lt;LABEL&gt;Select series&lt;/LABEL&gt;&lt;BR /&gt;
            &lt;DEFAULT&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/DEFAULT&gt;&lt;BR /&gt;
            &amp;lt;choice value=""&amp;gt;All&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"  ]]&amp;gt;&lt;/POPULATINGSEARCH&gt;&lt;P&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;ROW&gt;&lt;BR /&gt;
               &lt;TABLE&gt;&lt;BR /&gt;
            &lt;TITLE&gt;Matching events&lt;/TITLE&gt;&lt;BR /&gt;
&lt;SEARCHSTRING&gt; | dbquery "Finance Database" "select * from  fa_deprn_periods where BOOK_TYPE_CODE='$bookcode$' "&lt;/SEARCHSTRING&gt;  &lt;P&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;/table&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
Still no record in the table &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;/TABLE&gt;&lt;/ROW&gt;&lt;/P&gt;&lt;/FIELDSET&gt;&lt;/FORM&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:53:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151234#M42379</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2020-09-28T15:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: show overall data in table if  no option is selected in dropdown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151235#M42380</link>
      <description>&lt;P&gt;The choice value should not be "All" - that's just what the dropdown should display. All should be substituted with "*" in the actual splunk search query. So the question is, will this query return anything:&lt;/P&gt;

&lt;P&gt;| dbquery "Finance Database" "select * from fa_deprn_periods where BOOK_TYPE_CODE='*' "&lt;/P&gt;

&lt;P&gt;...when input into a Splunk search outside of your populating search? If no, then there is your answer. &lt;/P&gt;

&lt;P&gt;You might try instead where BOOK_TYPE_CODE='%' or where BOOK_TYPE_CODE LIKE '%' and then change the "choice value" field to &lt;CHOICE value="%"&gt;All&lt;/CHOICE&gt; if it works.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151235#M42380</guid>
      <dc:creator>jbrodsky_splunk</dc:creator>
      <dc:date>2020-09-28T15:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: show overall data in table if  no option is selected in dropdown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151236#M42381</link>
      <description>&lt;P&gt;You are Awsome jbrodsky_splunk &lt;BR /&gt;
I tried it with % and it works....yipieeeee&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 10:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151236#M42381</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2014-02-19T10:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: show overall data in table if  no option is selected in dropdown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151237#M42382</link>
      <description>&lt;P&gt;Great to hear that it worked out!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 19:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/show-overall-data-in-table-if-no-option-is-selected-in-dropdown/m-p/151237#M42382</guid>
      <dc:creator>jbrodsky_splunk</dc:creator>
      <dc:date>2014-02-19T19:19:00Z</dc:date>
    </item>
  </channel>
</rss>

