Cannot find function setMenuVisible

Keep getting this error:

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.

did you file a case? http://www.servoy.com/s

jcarlos:
function openStart(){
plugins.window.setMenuVisible(false);
plugins.window.setToolBarVisible(false);
application.setWindowSize(950,750);
}

I think that in 5.0.X you must use (at least in the wiki say that) :

plugins.kioskmode.setMenuVisible(false)
plugins.kioskmode.setToolBarVisible(false)

Best regards.
Victor.

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.

Thank YOU very much for the explanation… very clear and concise!

I updated to version Servoy 5.1.2… Very difficult. I’ll post some tips about for the Forum regarding the .jar.jnpl file and the version thing.

I should have waited for version 5.1.3