Hello all:
I have the below code to create a popup menu, and everything seems fine to me per the wiki, etc. The popup menu appears in the UI, but although the code generates no errors, the menu method does not fire. The ‘application.output’ statement correctly shows the method code, but nothing happens…any ideas of where i am going wrong? Thank you in advance.
/**
* @properties={typeid:24,uuid:"9DD3EF2B-8887-4FA5-880B-DCEB3DAF8F83"}
*/
function rightClickShowPopup() {
var _menu = plugins.window.createPopupMenu() ;
var _thisForm = solutionModel.getForm( controller.getName() ) ;
var _method = _thisForm.getMethod( 'removeColumn' ) ;
application.output('method code: \n '+ _method.code ) ;
_menu.addMenuItem('Remove Column', _method ) ;
_menu.show() ;
}
/**
* @properties={typeid:24,uuid:"D2440EE6-A144-471E-B2FF-DD2A5360B181"}
*/
function removeColumn() {
application.output('hello remove column world.') ;
}