<?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 How to update a search after setting token value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-search-after-setting-token-value/m-p/293132#M88480</link>
    <description>&lt;P&gt;Hi, I'm very new to Splunk.  I'm trying to implement a reset button that will update the token value text_name to have an empty string value.  However the startSearch function will just run the previous search from before without the updated token value.  Is there a way to work around this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$("#reset_button").click(function(){
            var tokens = mvc.Components.get("default");
            //console.log(tokens.get("text_name"));
            var searchObj2 = mvc.Components.getInstance("search2");
            tokens.set("text_name", "");
            searchObj2.startSearch();
        });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 30 Jun 2017 19:31:47 GMT</pubDate>
    <dc:creator>chaninphx</dc:creator>
    <dc:date>2017-06-30T19:31:47Z</dc:date>
    <item>
      <title>How to update a search after setting token value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-search-after-setting-token-value/m-p/293132#M88480</link>
      <description>&lt;P&gt;Hi, I'm very new to Splunk.  I'm trying to implement a reset button that will update the token value text_name to have an empty string value.  However the startSearch function will just run the previous search from before without the updated token value.  Is there a way to work around this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$("#reset_button").click(function(){
            var tokens = mvc.Components.get("default");
            //console.log(tokens.get("text_name"));
            var searchObj2 = mvc.Components.getInstance("search2");
            tokens.set("text_name", "");
            searchObj2.startSearch();
        });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Jun 2017 19:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-search-after-setting-token-value/m-p/293132#M88480</guid>
      <dc:creator>chaninphx</dc:creator>
      <dc:date>2017-06-30T19:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a search after setting token value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-search-after-setting-token-value/m-p/293133#M88481</link>
      <description>&lt;P&gt;You probably need to use the "submitted" token model instead of "default".&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;var tokens = mvc.Components.get('submitted');&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 19:49:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-search-after-setting-token-value/m-p/293133#M88481</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-06-30T19:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a search after setting token value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-search-after-setting-token-value/m-p/293134#M88482</link>
      <description>&lt;P&gt;Awesome!  Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 21:03:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-search-after-setting-token-value/m-p/293134#M88482</guid>
      <dc:creator>chaninphx</dc:creator>
      <dc:date>2017-06-30T21:03:55Z</dc:date>
    </item>
  </channel>
</rss>

