Project

General

Profile

Defect #505

Plugin can't handle functions that live in custom scopes besides globals (Servoy 6.1)

Added by P Bakker almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Start date:
05/06/2012
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

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

#1

Updated by Patrick Talbot almost 12 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.

#2

Updated by Patrick Talbot over 11 years ago

  • Status changed from In Progress to Closed

Fixed in v1.3.2

Also available in: Atom PDF