The getCurrentDisplayView() method gets the current displayView name, which is the view label stored in the DOM.
name = Splunk.util.getCurrentDisplayView()
|
String |
Current displayView name if different from the view name. Otherwise, the current view name. |
var displayView = Splunk.util.getCurrentDisplayView();