All Apps and Add-ons

Add a dropdown feature to the dashboard using JavaScript and filter the results

iamsplunker31
Path Finder

We have a dashboard and it has 3 inputs Date, Transaction dropdown, Submit Button. I’m looking to add a dropdown (Manager) between date and transaction dropdown so that I can only see the transactions based on the Manager.

0 Karma

jeffland
SplunkTrust
SplunkTrust

It sounds like you want to use the value of your manager input token in the search that generates the results for the transaction input. I can't tell you how exactly to do it on your dashboard since I don't have your code, but it involves having the manager token in the query of the transaction input, the same way you have it in the main search that creates your results (table or view or whatever you got).
You need to make sure that the tokens work in both searches of course.

0 Karma

niketn
Legend

@iamsplunker31 by JavaScript do you mean Simple XML JS Extension or HTML Dashboard?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

iamsplunker31
Path Finder

Hi @niketnilay : It's an HTML dashboard

0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...