Hi,
i want to load a drilldown from an external file javascript instead of including it on the dashboard.
i tryied to use something like that in my javascript
require([
'underscore',
'jquery',
'splunkjs/mvc',
'splunkjs/mvc/utils',
'splunkjs/mvc/tokenutils',
'splunkjs/mvc/simplexml/urltokenmodel',
'splunkjs/mvc/simplexml/ready!'
], function (_, $, utils, TokenUtils, mvc, UrlTokenModel) {
$('#mytable').on('click', function (event) {
event.preventDefault();
var value1 = event.data['row.fieldname'];
var url = TokenUtils.replaceTokenNames("{{SPLUNKWEB_URL_PREFIX}}/app/myapp/dbDestination?tokenValue=" + value1, _.extend(submittedTokenModel.toJSON(), event.data), TokenUtils.getEscaper('url'));
utils.redirect(url, false, "_blank");
});
});
but how the js can resolve the row.data and how can run the drilldown function
nothing work only the click event.
can someone help me?
... View more