All Apps and Add-ons

Passing down values of Pulldown selectors after clicking Button/submitbutton

JaideepK
Explorer

I am using 5 checkbox Pulldown in my View. I am using the selected values of Pulldown to Populate a Table and chart.
The problem is as soon as I select or deselect some values form the Pulldown the Table and chart are getting Populated based on the selected values but I want the table and chart to repopulate only after I click the Button/submitbutton.

0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

You want to add this param to your Button module:

<param name="allowSoftSubmit">False</param>

That will make it so that changes to the Pulldowns and other form element modules are not allowed to cascade past the Button. Thus the user will have to click the Button explicitly after their selections have been made.

Note: whether the initial push proceeds past the Button is governed by a different param called allowAutoSubmit. These two params can be set to True or False independently of eachother.
And also note that in all cases, you want to set autoRun="True" at or near the top of the view in order to dispatch the searches for your dynamic Pulldown modules. Remember to have only one autoRun="True" and remember that autoRun="False" is completely meaningless and should be deleted whenever you see it.

View solution in original post

sideview
SplunkTrust
SplunkTrust

You want to add this param to your Button module:

<param name="allowSoftSubmit">False</param>

That will make it so that changes to the Pulldowns and other form element modules are not allowed to cascade past the Button. Thus the user will have to click the Button explicitly after their selections have been made.

Note: whether the initial push proceeds past the Button is governed by a different param called allowAutoSubmit. These two params can be set to True or False independently of eachother.
And also note that in all cases, you want to set autoRun="True" at or near the top of the view in order to dispatch the searches for your dynamic Pulldown modules. Remember to have only one autoRun="True" and remember that autoRun="False" is completely meaningless and should be deleted whenever you see it.

JaideepK
Explorer

Thank you for the solution..
But now when the I select the values from the Pulldown the table becomes invisible only to reappear after clicking the Button.How can I solve this ?

0 Karma

somesoni2
Revered Legend

How about adding a submit button and setting autoRun=false for charts and table Search modules?

0 Karma

JaideepK
Explorer

Thanks for the reply but that doesn't work for me

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...