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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...