Dashboards & Visualizations

How to add a dropdown menu in my app view ?

Communicator

I am able to populate the dropdown menu with the required items in advanced XML but i am unable to displat the charts on the selected item . Please help ?

Tags (2)
0 Karma
1 Solution

Influencer

Please read the following documentatation

http://docs.splunk.com/Documentation/Splunk/latest/Developer/FormIntro

This will help you create one in simple XML you can then append ?showsource=1 to the URL of the view, this will show the advanced XML for the form.

Alternatively you should read this documentation for advanced XML

http://docs.splunk.com/Documentation/Splunk/latest/Developer/AdvancedFormSearch

Can't really help apart from this unless you show us what you are having issues with (i.e. your XML)

View solution in original post

0 Karma

Communicator

This is the XML code I am using for my view. The Drop down menu is getting populated but the chart is not showing the results ?

enter code here




*
False
1


dashboard


You can adjust the time range of the reports
by selecting your desired time using the picker below.




*
All


True
uname_setting
Unit Name :
test search


unit_name
unit_name



uname_setting

stringreplace


$target$




Last 60 minutes
True

            <module name="HiddenSearch" layoutPanel="panel_row2_col1" autoRun="True">
                    <param name="search">sourcetype="audit" $unit_name$ |timechart count BY Admin_Name</param>
                    <param name="useHistory">Auto</param>
                    <module name="JobProgressIndicator"/>
                    <module name="HiddenChartFormatter">
                            <param name="chartTitle">RBA Activity - Successful Logins </param>
                            <param name="chart">column</param>
                            <param name="primaryAxisTitle.text">Time</param>
                            <param name="secondaryAxisTitle.text">Successful Logins</param>
                            <param name="legend.placement">bottom</param>
                            <module name="FlashChart">
                                    <param name="width">100%</param>
                                    <param name="height">360px</param>
                                    <module name="ConvertToDrilldownSearch">
                                            <module name="ViewRedirector">
                                                    <param name="viewTarget">flashtimeline</param>
                                                    <param name="popup">true</param>
                                            </module>
                                    </module>
                            </module>
                    </module>
            </module>




Please help

0 Karma

Influencer

Good Job!!

0 Karma

Communicator

I was using HiddenSavedsearch but when I used savedSearch Module it's working fine .

0 Karma

Influencer

Please read the following documentatation

http://docs.splunk.com/Documentation/Splunk/latest/Developer/FormIntro

This will help you create one in simple XML you can then append ?showsource=1 to the URL of the view, this will show the advanced XML for the form.

Alternatively you should read this documentation for advanced XML

http://docs.splunk.com/Documentation/Splunk/latest/Developer/AdvancedFormSearch

Can't really help apart from this unless you show us what you are having issues with (i.e. your XML)

View solution in original post

0 Karma

Influencer

If this answers your question please mark the answer as accepted (the tick next to the answer), you can even up-vote it if you like. 🙂

0 Karma

Communicator

Thanks for your reply !!

0 Karma

Communicator

can anyone show me any simple example in which dropdown is implemented ?

0 Karma