<?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: To run a search only on click of a button in the page. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52788#M179670</link>
    <description>&lt;P&gt;That's what I have and it's not working.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;module name="SubmitButton"&amp;gt;
 &amp;lt;param name="allowSoftSubmit"&amp;gt;False&amp;lt;/param&amp;gt;
 &amp;lt;param name="label"&amp;gt;Delete&amp;lt;/param&amp;gt;
 &amp;lt;module name="Search" autoRun="False"&amp;gt;
   &amp;lt;param name="search"&amp;gt;index=cehudlatest sys=$system$ site=$site$ mhost=$host$ appcat=$appcat$ appinst=$appinst$ | delete&amp;lt;/param&amp;gt;
   &amp;lt;name="earliest"&amp;gt;-10m@s&amp;lt;/param&amp;gt;                                          
   &amp;lt;param name="latest"&amp;gt;now&amp;lt;/param&amp;gt;
   &amp;lt;module name="JobProgressIndicator"/&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 Feb 2012 15:17:30 GMT</pubDate>
    <dc:creator>asingla</dc:creator>
    <dc:date>2012-02-02T15:17:30Z</dc:date>
    <item>
      <title>To run a search only on click of a button in the page.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52786#M179668</link>
      <description>&lt;P&gt;I have a submit button module containing search module and I want to execute the search only when user clicks on the button. As after search module I have to have some result module (JobProgressIndicator) for a valid view.xml but that is causing the search to run when user loads the page. Is there anyway so that search never runs when user loads the page?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 19:17:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52786#M179668</guid>
      <dc:creator>asingla</dc:creator>
      <dc:date>2012-01-17T19:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: To run a search only on click of a button in the page.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52787#M179669</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Setup autorun to false&lt;/LI&gt;
&lt;LI&gt;Set allowSoftSubmit param to false.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;See: &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/Developer/ModuleReference#SubmitButton"&gt;http://docs.splunk.com/Documentation/Splunk/4.3/Developer/ModuleReference#SubmitButton&lt;/A&gt;  &lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2012 15:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52787#M179669</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2012-02-02T15:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: To run a search only on click of a button in the page.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52788#M179670</link>
      <description>&lt;P&gt;That's what I have and it's not working.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;module name="SubmitButton"&amp;gt;
 &amp;lt;param name="allowSoftSubmit"&amp;gt;False&amp;lt;/param&amp;gt;
 &amp;lt;param name="label"&amp;gt;Delete&amp;lt;/param&amp;gt;
 &amp;lt;module name="Search" autoRun="False"&amp;gt;
   &amp;lt;param name="search"&amp;gt;index=cehudlatest sys=$system$ site=$site$ mhost=$host$ appcat=$appcat$ appinst=$appinst$ | delete&amp;lt;/param&amp;gt;
   &amp;lt;name="earliest"&amp;gt;-10m@s&amp;lt;/param&amp;gt;                                          
   &amp;lt;param name="latest"&amp;gt;now&amp;lt;/param&amp;gt;
   &amp;lt;module name="JobProgressIndicator"/&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Feb 2012 15:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52788#M179670</guid>
      <dc:creator>asingla</dc:creator>
      <dc:date>2012-02-02T15:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: To run a search only on click of a button in the page.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52789#M179671</link>
      <description>&lt;P&gt;Can you sent the entire view xml?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2012 00:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52789#M179671</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2012-02-03T00:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: To run a search only on click of a button in the page.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52790#M179672</link>
      <description>&lt;P&gt;Side Note: autoRun="false" does nothing.  Just &lt;EM&gt;dont&lt;/EM&gt; put autoRun="True".  I know it's pedantic but when teams put autoRun="False" everywhere, it seems to eventually lead to there being multiple autoRun="True" attributes, which causes problems.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2012 01:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52790#M179672</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-02-03T01:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: To run a search only on click of a button in the page.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52791#M179673</link>
      <description>&lt;P&gt;Did it work ? I am seeing similar issue, not sure whether there is a resolution. Neither allowSoftSubmit = false and/or autoRun="false" seems to be working especially on initial load&lt;/P&gt;</description>
      <pubDate>Sun, 15 Apr 2012 21:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52791#M179673</guid>
      <dc:creator>Sriram</dc:creator>
      <dc:date>2012-04-15T21:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: To run a search only on click of a button in the page.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52792#M179674</link>
      <description>&lt;P&gt;Yes, me too having same problem. is there any finite resolution for this.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 06:16:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-run-a-search-only-on-click-of-a-button-in-the-page/m-p/52792#M179674</guid>
      <dc:creator>savithamr</dc:creator>
      <dc:date>2016-04-11T06:16:01Z</dc:date>
    </item>
  </channel>
</rss>

