In order to get the currently selected view on the Scheduler, you should first get a reference to the scheduler widget and then use its view() method. This will return an object (type:
, representing the currently selected view. Once of the properties of this object, is the name
which should suite your scenario:
In the example below. you can observe the usage of the above-suggested approach (click "show selected view" button)
Hope this would help.