<?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: Dropdown not working with basesearch in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-is-dropdown-not-working-with-basesearch/m-p/638532#M11010</link>
    <description>&lt;P&gt;Oh yes scelikok, it works now!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2023 01:09:56 GMT</pubDate>
    <dc:creator>junmun-chan</dc:creator>
    <dc:date>2023-04-04T01:09:56Z</dc:date>
    <item>
      <title>Why is dropdown not working with basesearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-is-dropdown-not-working-with-basesearch/m-p/638320#M11005</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a base search, and have an event table to display the results. Problem is, only the 'All' value is working correctly. When i select other options, nothing is being display. The dropdown is showing me the correct options.&amp;nbsp; Below is my codes, i have changed some of the words, as i can't use the actual data here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;This is my base search, i have set it up at the top&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;form theme="dark"&amp;gt;
  &amp;lt;label&amp;gt;Profiles&amp;lt;/label&amp;gt;
  &amp;lt;search id="baseSearch"&amp;gt;
    &amp;lt;query&amp;gt;source="ErrorLog" ESPACE_NAME IN (Customer, Vendors, Friends) | replace "Customer" WITH "Customer Name", "Vendors" with "Vendors Name", "Friends" WITH "Friends Name" IN ESPACE_NAME&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;refresh&amp;gt;5m&amp;lt;/refresh&amp;gt;
    &amp;lt;refreshType&amp;gt;delay&amp;lt;/refreshType&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="time" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;This is the codes for my dropdown&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Error Log&amp;lt;/title&amp;gt;
      &amp;lt;input type="dropdown" token="ProfileLog" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Module&amp;lt;/label&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;ESPACE_NAME&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;ESPACE_NAME&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt;| stats count by ESPACE_NAME&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;event&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt;| search ESPACE_NAME=$ProfileLog$&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="list.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/event&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance is appreciated!! Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 20:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-is-dropdown-not-working-with-basesearch/m-p/638320#M11005</guid>
      <dc:creator>junmun-chan</dc:creator>
      <dc:date>2023-04-03T20:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown not working with basesearch</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-is-dropdown-not-working-with-basesearch/m-p/638372#M11009</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255483"&gt;@junmun-chan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Since your token values contains spaces you have use tokens between double-quotes like below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Error Log&amp;lt;/title&amp;gt;
      &amp;lt;input type="dropdown" token="ProfileLog" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Module&amp;lt;/label&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;ESPACE_NAME&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;ESPACE_NAME&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt;| stats count by ESPACE_NAME&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;event&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt;| search ESPACE_NAME="$ProfileLog$"&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="list.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/event&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Apr 2023 11:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-is-dropdown-not-working-with-basesearch/m-p/638372#M11009</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-04-03T11:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown not working with basesearch</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-is-dropdown-not-working-with-basesearch/m-p/638532#M11010</link>
      <description>&lt;P&gt;Oh yes scelikok, it works now!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 01:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-is-dropdown-not-working-with-basesearch/m-p/638532#M11010</guid>
      <dc:creator>junmun-chan</dc:creator>
      <dc:date>2023-04-04T01:09:56Z</dc:date>
    </item>
  </channel>
</rss>

