is there any way how to save chosen filter value?
Requirement is that when user opens dashboard next time then previously chosen filters valus should be set by default
Thanks in advance
If you are using Splunk 6, insert the schtip into the dashboard, form, ... - tag :
or in Splunk 5, put it into the "application.js"
Well, this ain't easy to answer ... without knowing your dashboard(s) and your "filter values" (where they come from - which object? Do you use (a) input field(s) or dropdown, radio, ...?)
In Simple XML it's very hard to get control of objects and the code.
You have to investigate, which id's in the code are used for that object.
E.g.: if you use (only) one (or the first) input field in that dashboard, the id would be "field1". So you can access that via JQuery and set the cookies depending on that (changed) value - done with an event handler. And get the cookie and set the input value.
Thank you a lot for the helful answer.
But now for me there one question related:
Let's suppose that I have stand-alone coockies.js fiel with necessary JS functuions: writing, reading and so forth.
What should I write in Xml - advance and simple versions - to call f.e. method "getCookie("userFilters")"?
I haven't managed to find an answer.