Hi,
I am sorry if I am asking a stupid question. i have created an app with six views, each view consists of a dropdown box populating sources and several other panels based on this dropdown box token value.
my need is like, when user start using the app, user will select a source, how can i persist this selection in other views, when user is moving to other views i need the earlier selection to be populated in the drop down box. is this possible in splunk. i am not able to connect these views/forms as they are created separately. i am not good in advanced xml.
but i tried with switcher module, but it is not encouraged by my superiors. if there is any way please direct me.
Can javascript help me in this issue as i am using forms for loading my modules?
please help
Thank you
jonuwz, is it possible to add more than one search in one switcher, i mean 6 forms as 6 switcher . so one switcher has to accomodate more than one search/panel. is it possible? i have posted my sample code in this question. all these has to be under one tab in tab switcher, similarly i will have 5 more. (in sideview example they have shown 4 i need 6 ). hope my question is clear now. please ask me if i am confusing something.
The switcher module is your best bet. Failing that, if you dont want to get your hands dirty in splunk internals, a possible solution would be to write application.js so that it intercepts changes in the dropdown and sets a cookie value.
You'd also need to periodically check for changes in the cookie value, and refresh the searches if the cookie had changed.
This is not trivial, but certainly possible (providing you have the JS chops to carry it off)
Upvoting because the ability to have a module that sets and retrieves SESSION variables is a neat idea.
This might be a bit blunt, but it's honest - I feel the most appropriate answer here is that you can't do what you want using Splunk views. If you were to be a very experienced Splunk views developer, well versed in building views and knowing how to create/modify your own custom modules and how to deal with custom REST endpoints among other things, you might be able to pull this off with lots of research and hard work. This work would have to be YOURS, because you're going into uncharted territory where there are no ready-made code samples to use. Right now I think you have quite some learning to do before you could start.
So, based on that, it is my belief that you'd be better off
The point was actually what Drainy said. You'll have to research your alternatives. If you need docs for how to research you're in more trouble than I thought.
i didn't mention splunk docs/apps
I think the point was that this is the part where you need to go out and research alternatives, this is a Splunk Q&A forum..
thanks AYN, i think i should go with the second option. please suggest me something that i can go through for this, any related documents/apps?
thank you
Isn't this just the same question you've asked already? Its the same principle, pass the value and use sideviews to read it in....
http://splunk-base.splunk.com/answers/69705/passing-a-variabletoken-through-link-search
http://splunk-base.splunk.com/answers/68727/url-loader-in-sideview
clever dashboard with switcher modules? can i embed all my panels(single value panels and tables with different searches) in switcher modules ? actually i tried doing that, can u post a sample code showing this, more than one panels in one switcher, i prefer tab switcher. when i referred sideview it has only one search under one switcher..
Well you can't do that, but you would push it as you drilldown to other views which is why I linked in those questions 🙂 You can't have it so they make a selection and it impacts every view within an app, what you would do in this case is either have a very clever dashboard with switcher modules and tabs to avoid having multiple dashboards or have the pulldown initiate a drilldown to another dashboard.
i am sorry if i confused u. when context change happen in one pulldown/dropdown , the change has to walks through all of the links on the page,and all other forms/views. When user is selecting one dropdown box all other drop down boxes in the APP should be populated with the same selection Wthis questionW was same as this, now i closed it.
the above three questions are completely different from this. they are about drilling down from a result.
plese help in this issue.
Thank you
Hi smolcj
sound like you should have a lock at sideview utils you can do amazing stuff with it.
cheers,
MuS