Hi,
we use some Custom Functions which we share with other colleagues via an AddIn.
The "custom" namespace is created in the global namespace, functions can be accessed via custom:myfunction.
The issue: Some colleagues use Projects.
a project has it's own global namespace - and from there, custom functions are not accessible:
Add Custom Functions( New Custom Function( "custom", "myfunc", Function( {x}, x + 20 ) ));
project = New Project(
Run Script(Try(custom:myfunc(1), Caption ("Namespace not accessible")));
);
On the other hand, it's not possible to run the script a second time inside the project [to create a duplicate custom function in the project scope]. Seems JMP finds the "global" namespace and tries to delete (!!) it:
project = New Project(
Run Script(Add Custom Functions( New Custom Function( "custom", "myfunc", Function( {x, y}, x + y - 1 ) )));
);
How do you use/access custom functions in parallel from standard JMP and from projects?