So assuming I got your problem right, this should do the trick. If you have more specifications plz tell me, I assumed some things since you didn't specified everything.
EDIT: Based on a token from a dropdown, all searches will respond to that value.
require([
'underscore',
'splunkjs/mvc/searchmanager',
'splunkjs/mvc',
'splunkjs/mvc/simplexml/ready!'
], function (_, SearchManager, mvc) {
var tokens = mvc.Components.get("default");
mvc.Components.get("my-dropdown-id").on("change", function(this){
// Manually start the searches when the value of the dropdown changes.
firstSearch.startSearch();
secondSearch.startSearch();
/*
.
.
.
*/
});
// Create all the searches you want
var firstSearch = new SearchManager({
id: "example-search-1",
earliest_time: "-24h@h",
latest_time: "now",
preview: true,
cache: false,
autostart: false,
search: "index=_internal host=$DropDownToken$| stats count by sourcetype" }, {tokens: true});
var secondSearch = new SearchManager({
id: "example-search-2",
earliest_time: "-24h@h",
latest_time: "now",
preview: true,
cache: false,
autostart: false,
search: "index=_internal host=$DropDownToken$| stats count by source" },{tokens:true});
// Assuming in your panels you have tables you must associate the views to the searches manually
mvc.Components.get("myTable1").options.managerid = firstSearch;
mvc.Components.get("myTable2").options.managerid = secondSearch;
}
... View more