Popupmenu plugin not working on th web

I have a method attached to a button that shows a popup menu. I have used the popupmenu plugin. The values are stored in a value list. This works fine in the developer and the client, but it doesn’t in the web client.

I know that the plugin works with the web-client, so the fault should be in the method, but I can’t find it.

Here is the code:

var vdataset = application.getValueListItems('find')
var menu = new Array()
for (var i = 1 ; i <= vdataset.getMaxRowIndex() ; i++ )
   {
   menu[i-1] = plugins.popupmenu.createMenuItem(vdataset.getValue(i, 1), globals.setOperator);
   menu[i-1].setMethodArguments (i+ 'arg1','arg2');
   }

//set menu method arguments and check mark
var x = 0
while (menu[x])
{
    //pass arguments
    menu[x].setMethodArguments(menu[x].text)
    
    //set check mark
    if (globals.g_operator == menu[x].text) {
        menu[x].setSelected(true)
    }
    else {
        menu[x].setSelected(false)
    }
    x++
}




var elem = elements[application.getMethodTriggerElementName()] 
if (elem != null) 
{ 
 plugins.popupmenu.showPopupMenu(elem, menu);
}

I would appreciate some help[/code]

If it works in the smart client, it should work in the webclient as well. What Servoy version are you using? That feature is fairly new…

hello,

this was a very quick reply.

I use Version 3.5.1-build 514

That should work then. Is there an error? Server error (in the server’s log)?

the only thing I could find is this

Exception in thread “main” java.lang.NoClassDefFoundError: com/servoy/j2db/server/ApplicationServer

but I have no idea what it means.

We also have a problem with the popup menu in the web. It does appear when you click, but it takes 30 to 45 seconds to appear. Maybe you should get a cup on coffee and come back and see if it has appeared?

I think that I can wait for a whole dinnertime but nothing happens. :roll:

I suggest you file this issue in the Servoy support system:

http://crm.servoy.com/servoy-webclient/ … oy_support

Preferably with a small demo solution that reproduces the problem.

Thank you, I just followed your suggestion. I hope they can help me