<?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 Search fields not updating on token set in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Search-fields-not-updating-on-token-set/m-p/386534#M69362</link>
    <description>&lt;P&gt;I am attempting to set a token via a drilldown in a simple xml dashboard as a way to filter a table. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;input type="dropdown" token="batchId" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;BatchId&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;BatchId&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;BatchId&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search base="base"&amp;gt;
        &amp;lt;query&amp;gt;| dedup BatchId | sort BatchId&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;drilldown&amp;gt;
          &amp;lt;condition field="BatchId"&amp;gt;
            &amp;lt;set token="batchId"&amp;gt;$click.value2$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
 &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Clicking the field does filter the table when the token is set but the dropdown box does not reflect the token change to indicate to the user that a filter is active.&lt;/P&gt;

&lt;P&gt;I found this question pasted below but it also does not update the field until refresh, and then as a side effect of setting the token as the default the clear X no longer works to change the filter back to *.&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/462005/how-to-update-input-text-fields-when-tokens-are-ch.html"&gt;https://answers.splunk.com/answers/462005/how-to-update-input-text-fields-when-tokens-are-ch.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 13:19:04 GMT</pubDate>
    <dc:creator>jdcain</dc:creator>
    <dc:date>2018-06-18T13:19:04Z</dc:date>
    <item>
      <title>Search fields not updating on token set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-fields-not-updating-on-token-set/m-p/386534#M69362</link>
      <description>&lt;P&gt;I am attempting to set a token via a drilldown in a simple xml dashboard as a way to filter a table. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;input type="dropdown" token="batchId" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;BatchId&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;BatchId&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;BatchId&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search base="base"&amp;gt;
        &amp;lt;query&amp;gt;| dedup BatchId | sort BatchId&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;drilldown&amp;gt;
          &amp;lt;condition field="BatchId"&amp;gt;
            &amp;lt;set token="batchId"&amp;gt;$click.value2$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
 &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Clicking the field does filter the table when the token is set but the dropdown box does not reflect the token change to indicate to the user that a filter is active.&lt;/P&gt;

&lt;P&gt;I found this question pasted below but it also does not update the field until refresh, and then as a side effect of setting the token as the default the clear X no longer works to change the filter back to *.&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/462005/how-to-update-input-text-fields-when-tokens-are-ch.html"&gt;https://answers.splunk.com/answers/462005/how-to-update-input-text-fields-when-tokens-are-ch.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 13:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-fields-not-updating-on-token-set/m-p/386534#M69362</guid>
      <dc:creator>jdcain</dc:creator>
      <dc:date>2018-06-18T13:19:04Z</dc:date>
    </item>
  </channel>
</rss>

