Dashboards & Visualizations

Display dropdown on button click

vaishnavi07
Explorer

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.


Top Processes
independent
true


index=winserver_process sourcetype="PerfmonMk:Process" NOT instance=Idle NOT instance=_Total host="adwas1701" earliest=-5m@m | eval Process=upper(instance) | table Process %_Processor_Time | dedup Process | sort - %_Processor_Time | head 10

200px
Process
Process:
4
instance="$value$"
+OR+
$value$


All*

Process

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

right
$graphtype$
Time

$statistic$($column$)
$column$ for processes

connect

300px
100%


flashtimeline







Tags (1)
0 Karma

somesoni2
Revered Legend

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>
0 Karma

vaishnavi07
Explorer

Hi I have added the edited my question and added the code to it.

0 Karma

somesoni2
Revered Legend

Can you provide your view xml in the post?

0 Karma

vaishnavi07
Explorer

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?

0 Karma

vaishnavi07
Explorer

ya i tried but even then its not getting loaded.

0 Karma

somesoni2
Revered Legend

Try with " false"

0 Karma

vaishnavi07
Explorer

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

0 Karma

somesoni2
Revered Legend

Glad I can help. Please accept the answer if there are no followup ques on the same.

0 Karma

vaishnavi07
Explorer

Thanks! It works great!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

Data Management Digest – May 2026

Welcome to the May 2026 edition of Data Management Digest!   As your trusted partner in data innovation, the ...