Defect #505
Plugin can't handle functions that live in custom scopes besides globals (Servoy 6.1)
0%
Description
If I pass a scope method as second param of the addKeyListener plugin, on line 79 of the MyFunctionDefinition(Function f) constructor it won't find the formName, which is understandalbe, but there's no logic to retreive the scope and thus when the function in invoken by the Keylistener, it passes null for the context in executeMethod(), thus assuming it's the globals scope.
History
Updated by Patrick Talbot almost 13 years ago
- Status changed from New to In Progress
Actually the MyFunctionDefinition should only be used in Servoy prior to 5.x (where FunctionDefinition didn't exist), this is a workaround that was used to make it compatible with Servoy 4.x
But maybe there's another problem here and it doesn't find the correct class in 6.1, and if it does, I think the execute method is deprecated so it can cause that issue. I'll have a look anyway.
Updated by Patrick Talbot over 12 years ago
- Status changed from In Progress to Closed
Fixed in v1.3.2