Hi!
How can I do this?
What type of data is the functon: Function class? How can I call it back, so I can receive the call in servoy?
Thanks!
Bogdan.
Hi!
How can I do this?
What type of data is the functon: Function class? How can I call it back, so I can receive the call in servoy?
Thanks!
Bogdan.
Function is a org.mozilla.javascript.Function. You need to add js.jar from lib to your build path.
You receive the Function and best store it as com.servoy.j2db.scripting.FunctionDefinition:
FunctionDefinition functionDef = new FunctionDefinition(method);
to execute a method then you use IClientPluginAccess.executeMethod() or functionDef.execute(IClientPluginAccess, …).
Is this method com.servoy.j2db.scripting.FunctionDefinition.execute(IClientPluginAccess access, Object arguments, boolean async) synchronized at a point? Because if I call it from 2 or more different threads it’s executed sequentially.
Yes I think it is… I think all functions written by me are synchronized within the same client only. Is this right?