The getCurrentView() method gets the current view value, which is the actual view name stored in the DOM.
results = Splunk.util.getCurrentView()
|
String |
Current view value, as stored in the DOM, or UNKNOWN_VIEW if undefined. |
var view = Splunk.util.getCurrentView();