Error on all popupmenu's in 6.1

I’m getting an error on all plugins.window.createPopupMenu() instances in servoy 6.1.

“Can’t find method com.servoy.extensions.plugins.window.menu.AbstractMenu.js_addMenuItem(string,function,null,string,boolean,null)”

I’ve tried several things, but keep on getting the error. I was wondering if anybody else is getting this? Solution works fine in 6.0.x but in 6.1 suddenly all popupmenu’s stopped working.

That last argument is supposed to be a number.
Either remove it alltogether, or use an number there (-1 for example) instead of null.

Kaptan:
I’m getting an error on all plugins.window.createPopupMenu() instances in servoy 6.1.

“Can’t find method com.servoy.extensions.plugins.window.menu.AbstractMenu.js_addMenuItem(string,function,null,string,boolean,null)”

I’ve tried several things, but keep on getting the error. I was wondering if anybody else is getting this? Solution works fine in 6.0.x but in 6.1 suddenly all popupmenu’s stopped working.

Sem, we just modified the window plugin so your code should not throw an error now. This will be available in the next public release of 6.1.
But as Andrei pointed out already, the last argument should be an int (you can use MenuItem.ALIGN_* constants).

Regards,
Andrei

Ok thx,

I’ve also rewritten my code a bit, I’m not getting an error anymore in the current release. I got a bit scared of the errors, since the code was working before 6.1. But all is ok now :)