https://wiki.servoy.com/display/DOCS/SolutionModel#SolutionModel-wrapMethodWithArguments(method,args)
In the sample of the documentation of method wrapMethodWithArguments(method, args) it says that i can send my arguments as items of an array:
- Code: Select all
solutionModel.wrapMethodWithArguments(method, [null, quotedString])
What I noticed is that i cannot reach any arguments this way, in the method my arguments are null.
It only works if i send it as a value of a property of an object:
- Code: Select all
solutionModel.wrapMethodWithArguments(method, [null, {prop: quotedString}])
this way in the method i indeed get, as my second argument, the object.
Am I using it wrong or does the documentation of this method need updating?
Or I am thinking now that maybe it depends on the webcomponent where the method is used as a handler? I use it on a bootstrapcomponents-label.
Thank you,
Diana