This is key, as it deviates from the previous version (v3.0). Also, this should be provided as part of the Change Log so that developers can make the appropriate change when they update their libraries.
tab_views contains main views: List, Day and Month. views - all other views including custom views that can be added in Scheduler. Therefore, docs are correct.
I’m having it initially load the ‘setup’ view which actually contains login information. This example doesn’t need that part to demonstrate the problem though.
Anyway, what’s happening is that it loads the initial setup “view”, but that “view” isn’t part of the Scheduler’s list of tabs, so I don’t get the List/Day/Month options at the bottom of the setup view. When you push the button on the setup view, it should show the month view of the calendar. But, it is unable to do so unless I ‘push’ the setup view into the list of tab_views.
Displaying the view is not enough - it needs to retain functionality with the rest of the Scheduler.
The scheduler contains few multiview elements, in above code you are placing custom view in top level multiview, but “month” view, which you are using is placed in different multiview, so after your command it really shown in second multiview, but the top multiview is not changed ( sorry for pretty confusing description )
Anyway, you can change code as
function showCalendar(){
$$('scheduler').$$('tabViews').getParent().show();
};