Popupmenu plugin not working on th web

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

Popupmenu plugin not working on th web

Postby irenem » Thu Oct 18, 2007 1:49 pm

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:

Code: Select all
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]
User avatar
irenem
 
Posts: 279
Joined: Tue Aug 28, 2007 2:09 pm
Location: Netherlands

Postby patrick » Thu Oct 18, 2007 1:54 pm

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...
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby irenem » Thu Oct 18, 2007 1:59 pm

hello,

this was a very quick reply.

I use Version 3.5.1-build 514
User avatar
irenem
 
Posts: 279
Joined: Tue Aug 28, 2007 2:09 pm
Location: Netherlands

Postby patrick » Thu Oct 18, 2007 2:03 pm

That should work then. Is there an error? Server error (in the server's log)?
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby irenem » Thu Oct 18, 2007 2:27 pm

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.
User avatar
irenem
 
Posts: 279
Joined: Tue Aug 28, 2007 2:09 pm
Location: Netherlands

Postby Gary R. Schaecher » Thu Oct 18, 2007 2:53 pm

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?
Gary R. Schaecher
TMA Systems, LLC
www.tmasystems.com
Gary R. Schaecher
 
Posts: 72
Joined: Sat Jan 06, 2007 11:01 pm

Postby irenem » Thu Oct 18, 2007 3:01 pm

I think that I can wait for a whole dinnertime but nothing happens. :roll:
User avatar
irenem
 
Posts: 279
Joined: Tue Aug 28, 2007 2:09 pm
Location: Netherlands

Postby ROCLASI » Thu Oct 18, 2007 3:06 pm

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.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby irenem » Thu Oct 18, 2007 4:00 pm

Thank you, I just followed your suggestion. I hope they can help me
User avatar
irenem
 
Posts: 279
Joined: Tue Aug 28, 2007 2:09 pm
Location: Netherlands


Return to Web Development

Who is online

Users browsing this forum: No registered users and 6 guests

cron