TypeError: Cannot find function setMenuVisible. (openStart#5)
This is the function referenced in the error message:
function openStart(){
plugins.window.setMenuVisible(false);
plugins.window.setToolBarVisible(false);
application.setWindowSize(950,750);
}
The app works fine in Developer’s Smart Client and Web Client tests.
I get that error every time the Smart Client starts from the application server (after deployment)
I have Servoy 5.0.1 in both, the developer and server. Both in Windows (7 and Server 2003 respectively). I don’t see anything wrong in my code. The developer doesn’t trough any warning either. This is why I am reporting this as a bug.
Correct.
The Window plugin got introduced in 5.0.0 but the kiosk (and menubar and popupmenu) plugin was merged into the window plugin in 5.1.0.
Using plugins.kiosk.setMenuVisible(false) will keep working in 5.1.x but of course the new syntax won’t work before the merge.