My Dashboard looks like below
I have set 2 hours as default time. I wanted my app to show results onload. How can i achieve
Timepicker submit button searchString (summary search) autorun = true post process1 autorun = true ..... ..... post processN autorun = true End searchString (summary search) searchString (raw search) autorun = true post process1 autorun = true ..... post processN autorun = true End searchString (raw search) End submit button End Timepicker
You should remove the autoRun="True" attributes you have lower down and just put a single autoRun="True" up on the TimeRangePicker module. I think that might be your only problem.
Sometimes people think there's something special about the Search module or the HiddenSearch module that dictates that autoRun attributes always have to go there. autoRun="True" however, just means "start a push from this point when the page loads". You can think of an autoRun="True" attribute as an invisible SubmitButton module that inserts itself right there, gets clicked (thus initiating the push), and then dissappears. Once you think of it this way you should see how evil and problematic it would be to have lots and lots of autoRun="True" all over the place.
Anyway, I think what's happening is that your autoRun="True" attributes lower down, are initiating their pushes before the upper search even runs at all.
You should remove the autoRun="True" attributes you have lower down and just put a single autoRun="True" up on the TimeRangePicker module. I think that might be your only problem.
Sometimes people think there's something special about the Search module or the HiddenSearch module that dictates that autoRun attributes always have to go there. autoRun="True" however, just means "start a push from this point when the page loads". You can think of an autoRun="True" attribute as an invisible SubmitButton module that inserts itself right there, gets clicked (thus initiating the push), and then dissappears. Once you think of it this way you should see how evil and problematic it would be to have lots and lots of autoRun="True" all over the place.
Anyway, I think what's happening is that your autoRun="True" attributes lower down, are initiating their pushes before the upper search even runs at all.
Thank so lot, you exactly got the problem. It worked like a charm
I'm assuming you are using advanced XML, if not I think you will need to.
I believe you should look at the module refence, specifically the "SubmitButton" module
(http://docs.splunk.com/Documentation/Splunk/latest/Developer/ModuleReference#SubmitButton)
You should then look at the "allowSoftSubmit" parameter. This defaults to false, which requires user to select the "Search" button to generate results in a form.
Regards,
MHibbin
I "yay"ed my dashboard 🙂 thank you
Since you're already using Sideview Utils you should consider using SearchControls instead of JobStatus and JobStatusMin. Also delete the HiddenFieldPicker, ViewStateAdapter and Gimp modules. And delete all the "groupLabel" attributes. None of those are doing anything here so you can safely delete them and save your eyesight. Also while you're at it de-nest all of the child modules from JobProgressIndicator and EnablePreview. It's meaningless for those two modules to contain child modules so the only change from de-nesting them will be to make your view less indented (yay).
With the below code. My page is not generating graphs as expected. It loads only on pressing submit button.
@Ayn let me know if you need more information
Now i have to hit submit button to load. I want the page to show charts as soon as i visit the dashboard.
Please note that putting timepicker and submit module inside searchString module works. But the problem is i want the time picker to be common for both search string modules
What do you mean by "show results onload"? What's the current behaviour, and how does it differ from how you want it to behave?