Dashboards & Visualizations

Connecting more than one view

smolcj
Builder

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

Tags (3)
1 Solution

smolcj
Builder

hi ,
Nick's sideview have an answer for this .
here is the answer
thanks for all your assistance

View solution in original post

0 Karma

smolcj
Builder

hi ,
Nick's sideview have an answer for this .
here is the answer
thanks for all your assistance

0 Karma

smolcj
Builder

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.

0 Karma

jonuwz
Influencer

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.

Ayn
Legend

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

  1. Abandon the idea of implementing this functionality, or
  2. Use something other than Splunk's views as web interface if you definitely need it.

Ayn
Legend

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.

0 Karma

smolcj
Builder

i didn't mention splunk docs/apps

0 Karma

Drainy
Champion

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..

smolcj
Builder

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

0 Karma

smolcj
Builder

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..

0 Karma

Drainy
Champion

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.

0 Karma

smolcj
Builder

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

0 Karma

MuS
Legend

Hi smolcj

sound like you should have a lock at sideview utils you can do amazing stuff with it.

cheers,

MuS

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...