cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Add-In Manager, Part 1: Defining and building a JMP add-In

Have you ever wished you had a better way of managing your collection of JMP add-ins? With the new Add-In Manager add-in, you can keep track of all of your add-in development activities. This blog post is the first part in a three-part series, covering how to define and build an add-in, deploy an add-in to users, and make advanced customizations available in Add-In Manager. 

Step 1: Create Development Source Folder

This step is just one suggested way to approach organizing your add-in files. You can do this part however works best for you.

  • Create a folder for your add-in. This folder will contain all versions of the add-in as well as the source files. Optionally create an Archive folder if you would like Add-In Manager to archive add-ins for you each time you build a new version.Destination FolderDestination Folder
  • Optionally, within the source folder, create subfolders to group different types of files separately. This may be unnecessary for small add-ins, but can be very useful when there are many files used in a single add-in.

Source FolderSource Folder

Step 2: Define a New Add-In

  • Before you define any add-ins, there will be a message as shown below.

Get Started.png

  • Click the New Add-In button Add.gif to define a new add-in.
  • Click the ellipsis buttons to add both a source and destination folders. You can optionally turn on archiving for your add-in and provide an archive folder.

New Add-In Entry.png

  • If there was not an addin.def file located in the source folder, you will be prompted for a name and ID for the add-in. Enter a name and an ID and click “Create.”

Create addin.def.png

  • The add-in has now successfully been defined in Add-In Manager.

Add-In Defined.png

Step 3: Update General Info

  • Under the General Info Tab, you can optionally add a version number, min/max JMP version, and a supported host.

General Info.png

  • At the bottom of the tab, there is a Folder Locations section. Here you can update your source/destination folders as well as archive settings.

Folder LocationsFolder Locations

  • After updating, press the Save button Save.gif to save this information.
  • Optionally, you can click the “Lock add-in definition” check box to ensure no changes are made to your addin.def file.Lock Definition.png

     

Step 4: Add Menu Item(s)

  • Click on the Menu Items tab to update the add-ins menu item commands. Before adding any submenus or commands, the tab appears as below.
  • You can then add either a submenu or command. In this example, there is just a single command. Click the red triangle menu next to “Menu Item Tree” and select “Add Command” to add a command menu item to the tree. After the command is created, it will have the below default values.Add Command.png
  • Rename the menu item and optionally give it a tooltip.Name-Tooltip.png
  • Add an action to run for this command either using a file or pasting the JSL in directly. In this example, we paste the script into the Run this JSL option as shown below. To do this, click the “…” button, paste the JSL into the script editor, and press OK. The results are shown below.

Set Script.png

  • Optionally, set an Icon and Shortcuts for the menu item command.
  • When you are finished, press the save button Save.gif to save the menu item(s).

Step 5:  Building and Installing the JMP Add-In

With the add-in properly defined within Add-In Manager, you are now ready to build and install the add-in.

  • To build the add-in (i.e. creating the jmpaddin file), click the Build button JMPAddin.gif while the desired add-in is selected. When this button is clicked, the jmpaddin file is created within the Destination Folder.
  • If you have automatic archiving turned on, and the Prompt for Comment preference set, you will get a pop-up window with a text box for a comment. This is a good place to store information about what has changed in this specific build of the add-in.

Archive Comment.png

  • To install the add-in, simply click the Install dropdown button and select “Install DEV” while the add-in is selected in the add-in list.

I hope you find my Add-In Manager add-in useful!

Last Modified: Mar 8, 2018 11:35 AM