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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...