Dashboards & Visualizations

how to disable autoRun when switching tabs?

dianbo_1
Path Finder

Hi,

I has a form search with a tabswitcher to show the result in 4 tabs. I set autoRun="False" to all modules to disable default autoRun. It's OK when the page loads at the first time, but when i click other tab, it will autoRun. Can anyone tell me how to disable autoRun when switching tabs before clicking ">" button.

Thanks,

Dianbo

0 Karma

sideview
SplunkTrust
SplunkTrust

When you switch tabs it's not autoRun that's causing the searches to kick off, it's just the fact that the Switcher module itself is holding onto an undispatched search, and when you switch the tabs it "pushes" its data down to the downstream modules. And when an undispatched search hits a module that actually needs a running search, a new search will always be kicked off.

In some circumstances its possible to rework the view such that at the place where the switcher module is in the hierarchy, the search has already been dispatched, ie by putting a SimpleResultsHeader or some other module above the switcher module. If that can be done then you can get only one search being kicked off for the entire set of tabs.

However, that doesnt sound like the case you have here, judging by your mention of the ">" button.
Interpreting that comment to mean that you have a SubmitButton module in there underneath the switcher, and you want the tab switch to result in no search kicked off, but then the green button click to result in a search being kicked off, then you'll want to give the SubmitButton a param of

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

that param defaults to True I believe, and when True it means that whenever new data comes down through the SubmitButton, it will let it through, and searches may get dispatched. When set to False, it will block pushes from reaching downstream modules, until a user actually clicks on the green button.

hth.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Accelerate Splunk App Development with AI

  Learn how to automate the repetitive parts of your build cycle.   Watch On-Demand   Replay the Accelerate ...

Splunk Agent Observability: Measuring AI Value with Splunk Tokenomics on AWS

The AI landscape is moving faster than ever, and our latest 2026 State of Observability report provides the ...

Enterprise Security Watch Party: What’s New in 8.8 - Recap

Splunk Community HQ hosted a Splunk Enterprise Security Watch Party: What’s New In ES 8.8 last Thursday. I had ...