You can create the dropdown with the names of the panels. Then you would add this into the XML of each panel:
This will only display the panel when "showPanel", or whatever you name your token, is clicked on. You might want to use checkboxes so that a user can display multiple panels at a time though. Hope that helps
you can do this in two ways:
This method allows you to control the searches within the tabs such that they do not execute until you click the tab. I have used this technique in apps and it has worked very well for me.
Create X ( X is matching the number of panels you want to create ) repports where each repports have his query .
After do that, create an Dashboard .
Add an dropdown input and set it with only attributs like this:
1) Label : Select_panel
2) Search on Change : Enabled
3) Token : panel
4) Default: "you can select an panel to run by default when you open your dashboard"
5) Go in statics options and add X options like follow example:
Panel1 and panel2 are names of my two search panels.
My entire code is:
<form> <label>Select_panel</label> <fieldset submitButton="false"> <input type="dropdown" token="panel" searchWhenChanged="true"> <label>Select_search</label> <choice value="Count_by_sourcetype">Panel1</choice> <choice value="Count_warning_count_sourcetype">Panel2</choice> <default>Count_by_sourcetype</default> </input> </fieldset> <row> <panel> <title>panel</title> <table> <title>Count_by_sourcetype</title> <search> <query>|savedsearch $panel$</query> </search> <option name="wrap">undefined</option> <option name="rowNumbers">undefined</option> <option name="drilldown">row</option> </table> </panel> </row> </form>
You may take a look at this app,
provides lot more examples on dropdowns..
also , you can take a look at the xml source file of dashboards with several panels. (s.o.s , etc)