Thank you, I used that to make the code independent from app name (if I want to create a production and a development app, or an xml and a django app):
var app_name;
require(["splunkjs/mvc/utils"], function (SplunkUtil) {
"use strict";
app_name = SplunkUtil.getCurrentApp();
var libs = [
"../app/" + app_name + "somelibrary",
// other dependences
];
require(libs, function (SomeLibrary, /* other objects */) {
// code block
});
});
... View more