I've returned to this problem.
I've installed 6.1.1. In that version we have FormUtils module:
share/splunk/search_mrsparkle/exposed/js/splunkjs/mvc/simpleform/formutils.js
Here we have method submitForm, that could be extended by our own script:
require([
'underscore',
'jquery',
'splunkjs/mvc',
'splunkjs/mvc/simpleform/formutils',
'splunkjs/mvc/simplexml/ready!',
'splunkjs/ready!'
], function(_, $, mvc, FormUtils) {
_.extend(FormUtils, {
submitForm: _.debounce(function(options) {...}
}
}
This could be good start point to search the final solution.
But, this is only for 6.1.1. If you install 6.0.x you will never find that formutils.js file. In this case i think that there is no common solution for this.
Another suggestion, which is simpler, is just to take saved url (after pressing the submit button, our filters are saved in the url) and to reload the page with it.
I would like to know, that solution is the best. Has anybody solved that in another way?
... View more