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]