Application Framework Reference

Splunk API

getCurrentApp()

The getCurrentApp() method gets the current app name as stored in the DOM, which is not the friendly name, or label, of the current app.

Synopsis

app = Splunk.util.getCurrentApp()

Return Value

String

Current app name or UNKNOWN_APP , if app name is undefined in the DOM.

Example

document.location = Splunk.util.make_url('app', Splunk.util.getCurrentApp());

See Also

getCurrentDiplayView()
getCurrentView()
getCurrentViewConfig()
make_url()