<?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 Update search command string of search Manager by js in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Update-search-command-string-of-search-Manager-by-js/m-p/482709#M193255</link>
    <description>&lt;P&gt;i have an button that change the search command string, i want to update that string to "search" of searchManager and trigger the it to update data in the view &lt;BR /&gt;
is that possible ?&lt;/P&gt;

&lt;P&gt;can some one please help ? &lt;BR /&gt;
example is better for me to understand .&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2019 04:24:01 GMT</pubDate>
    <dc:creator>cuongnguyen112</dc:creator>
    <dc:date>2019-11-13T04:24:01Z</dc:date>
    <item>
      <title>Update search command string of search Manager by js</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Update-search-command-string-of-search-Manager-by-js/m-p/482709#M193255</link>
      <description>&lt;P&gt;i have an button that change the search command string, i want to update that string to "search" of searchManager and trigger the it to update data in the view &lt;BR /&gt;
is that possible ?&lt;/P&gt;

&lt;P&gt;can some one please help ? &lt;BR /&gt;
example is better for me to understand .&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 04:24:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Update-search-command-string-of-search-Manager-by-js/m-p/482709#M193255</guid>
      <dc:creator>cuongnguyen112</dc:creator>
      <dc:date>2019-11-13T04:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Update search command string of search Manager by js</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Update-search-command-string-of-search-Manager-by-js/m-p/482710#M193256</link>
      <description>&lt;P&gt;@cuongnguyen112 &lt;/P&gt;

&lt;P&gt;You can update &lt;CODE&gt;SearchManager&lt;/CODE&gt; using below JS code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var searchManager = new SearchManager(...) // this is your search manager
var UpdatedSearchCommand  = "Search My new search String";
searchManager.settings.set("search",UpdatedSearchCommand  )
searchManager.startSearch();
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 06:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Update-search-command-string-of-search-Manager-by-js/m-p/482710#M193256</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-11-13T06:47:09Z</dc:date>
    </item>
  </channel>
</rss>

