Refine your search:

Can I have a view that has some panels that are shown based on a condition? The condition could be the result of a search or a user selection.

asked 21 May '12, 23:21

ramesh's gravatar image

ramesh
311
accept rate: 0%


One Answer:

There's a core module called "ConditionSwitcher", although I think it may be marked as a prototype. It takes a param that basically gets evaluated as a Javascript statement. So you can put things in it like '(context.get("someToken")=="all")'. Based on how that evaluates at runtime, it'll show different subbranches of XML config.

If you're using Sideview Utils 2.0, there's a much more powerful mechanism though, involving the Switcher module (new in 2.0), and depending on your use case, also the ResultsValueSetter module. Email me if you want to know more. (Sideview Utils 2.0 isn't a free product anymore so I won't spell it out here or you'll think I'm pitching you.) Cheers.

link

answered 21 May '12, 23:43

sideview's gravatar image

sideview ♦
25.6k4543
accept rate: 46%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×81
×46
×1

Asked: 21 May '12, 23:21

Seen: 440 times

Last updated: 21 May '12, 23:43

Copyright © 2005-2012 Splunk Inc. All rights reserved.