Unable to run addins within ProjectWe have organized many scripts into an addin for our company. The addin responds but scripts will not run when invoked within 'Project'. Is this something that can be remedied through the addin scripting or does the script itself have to be contained separately within the project?
ScriptingRe: Unable to run addins within ProjectI am guessing your add-in relies on global variables that are defined when the add-in loads and are referenced later when the add-in functionality is invoked. In projects, the global context is different than in the rest of JMP, and anything defined by the add-in is not accessible from within the project. To combat this you can set all menu options to open files or run scripts that include a checks if the add-in is already loaded (check if appropriate globals exist) and if it isn't loaded, to reload the addin. That way the add-in is loaded the first time the user invokes the add-in within a project.
If you aren't relying on global variables in your add-in, can you give more details about what functionality isn't working?
Re: Unable to run addins within ProjectI found this:
https://www.jmp.com/support/help/en/16.0/?os=win&source=application&utm_source=helpmenu&utm_medium=application#page/jmp/running-scripts-in-a-project.shtml
"JMP can have several projects open at the same time, as well as items not open in any project. Each project has its own global scope, which prevents conflicts caused by identically named variables in different projects. In the rare case that you do want to share specific variables among all opened projects, use the ::: root operator."
I think if your add-in loads scripts that you want to use from a project, the ::: may be what you need. I've not tried it.
@aaron_andersen
Re: Unable to run addins within ProjectCraige's idea is the first thing I'd look into also. (If that doesn't work, I'd need to see the adin-in, or at least know more about what it does, to make additional suggestions).
Aa
Re: Unable to run addins within ProjectHi Craig,
I wrote the add-ins that Lynn is using in her question. I created a namespace for each add-in to avoid variable collisions. Do these namespaces only exist within the non-project global scope? Is there a way that I could create namespaces within the ":::" global scope?
Many thanks,
John