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!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...