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?
Side Note: autoRun="false" does nothing. Just dont 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.
That's what I have and it's not working.
<module name="SubmitButton"> <param name="allowSoftSubmit">False</param> <param name="label">Delete</param> <module name="Search" autoRun="False"> <param name="search">index=cehudlatest sys=$system$ site=$site$ mhost=$host$ appcat=$appcat$ appinst=$appinst$ | delete</param> <name="earliest">-10m@s</param> <param name="latest">now</param> <module name="JobProgressIndicator"/> </module> </module>