Popupmenu plugin not working on th web
Posted: 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:
I would appreciate some help[/code]
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]