I ran into this issue when using the solutionModel to create buttons/labels with onAction methods:
I created a form by using the solutionModel.
On this form I also put a few labels (defined from records in a table) with an onAction that contain a global method.
The global method need some arguments.
What I like to do is set arguments to the global method, but I can’t find a proper way to do that.
Uglyest way I can think of to do this is to get the global method code and replace the argument tags, but I’m sure there could be a much more nicer way to do this!
This would be a nice feature, if I may say so:
var jLabelMethod = solutionModel.getGlobalMethod('myGlobalMethod');
var jLabel = vMenuForm.newLabel(vLabelTxt,vXPos,vYPos,vWidth,vHeight,jLabelMethod,[event,[argument 1],[argument 2]]);
Anybody any tips?