I want to show a button and if the user click on it the it should show the dropdown. Is there any way to do this? I am using sideview utils app.
<module name="Search" layoutPanel="panel_row3_col1" autoRun="False">
<param name="search"> index=winserver_process sourcetype="PerfmonMk:Process" host="adwas1701" $Process$ | timechart span=$spantime$m avg(%_Processor_Time) by instance </param>
<module name="Export">
<param name="exportType">results</param>
</module>
<module name="JobProgressIndicator" />
<module name="ValueSetter" >
Have a look at the 'ShowHideHeader' module of Splunk. It provides an option to show/hide a panel on click. you can place your dropdown within this panel to make them appear/hide when panel title is clicked.
<view autoCancelInterval="90" isPersistable="true" isSticky="true" isVisible="true" objectMode="SimpleForm" onunloadCancelJobs="true" template="dashboard.html">
<label>Auto Hide Panel</label>
<module name="AccountBar" layoutPanel="appHeader"/>
<module name="AppBar" layoutPanel="navigationHeader"/>
<module name="SideviewUtils" layoutPanel="appHeader"/>
<module name="URLLoader" layoutPanel="viewHeader" autoRun="True">
<!--Show/hide search controls and buttons section -->
<module name="ShowHideHeader" layoutPanel="mainSearchControls">
<param name="label">Advanced Search Filters</param>
<param name="mode">independent</param>
<param name="hideChildrenOnLoad">true</param>
<module name="Search">
<param name="search">
index=_internal earliest=-5m@m | stats count by sourcetype
</param>
<module name="Pulldown">
<param name="name">varSourcetype</param>
<param name="postProcess">fields sourcetype</param>
<param name="label">SourceType:</param>
<param name="float">left</param>
<param name="width">150px</param>
<param name="searchFieldsToDisplay">
<list>
<param name="label">sourcetype</param>
<param name="value">sourcetype</param>
</list>
</param>
</module>
</module>
</module>
</module>
</view>
Hi I have added the edited my question and added the code to it.
Can you provide your view xml in the post?
I have another one doubt.Am placing checkbox and graph inside the showhideheader module. Only after i select values in checkbox,the graph should get loaded but in my case its loading once i click the showhide arrow. Is there any option that can be set to stop loading the graph once the arrow is clicked and let the graph load only when checkbox options are selected?
ya i tried but even then its not getting loaded.
Try with "
Hi the above code works fine if i place checkboxes module and graph inside show hide header module but if i place pulldown module it just keeps loading. Even the above code is not producing output.It just keeps loading. Whats wrong in the above code
Glad I can help. Please accept the answer if there are no followup ques on the same.
Thanks! It works great!