Application Framework Reference

Splunk API

getCurrentView()

The getCurrentView() method gets the current view value, which is the actual view name stored in the DOM.

Synopsis

results = Splunk.util.getCurrentView()

Return Value

String

Current view value, as stored in the DOM, or UNKNOWN_VIEW if undefined.

Example

var view = Splunk.util.getCurrentView();
 

See Also

getCurrentApp()
getCurrentDisplayView()
getCurrentViewConfig()