cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
johnmoore
Level IV

Interactively changing menu in an add-in

I have developed a handful of add-ins that are similar but slightly different.  Each contains 30-40 scripts. Most of the scripts are the same,but some of the scripts available are different.  The differences are based on geography.  I would like to combine these into one add-in with the ability to select geography.  For example, if the user selected "Europe" as geography, the menu would change to show the correct scripts for Europe.  Any ideas how to do this?

 

Many thanks

1 REPLY 1
Jeff_Perkinson
Community Manager Community Manager

Re: Interactively changing menu in an add-in

One way (there are probably others) would be to have .jmpaddin files with the appropriate menu customization within your main add in and, after prompting to determine which is the correct one use Open() to open the appropriate .jmpaddin.

 

I can't work up an example right now, but in theory this should work. You can use $ADDIN_HOME() for the menu items to refer to the scripts in your main addin.

 

 

-Jeff