I have two main scripts (1) trendStudy (2) corrStudy, both of which call a bunch of other scripts but corrStudy does not call any scripts which trendStudy calls.
trendStudy produces a data table and a chart. corrStudy needs to use the data table created by trendStudy. Both set of scripts are working.
I want to have these two scripts built into a JMP add-in in the following way.
- When the add-in is started, a small floating window (always visible) appears with two click button boxes showing [Run trendStudy (Trend Plots)] and below it [Run corrStudy (Correlation Study)].
- Clicking on Run trendStudy button box only runs the trendStudy (and associated scripts) producing a trend chart and data table.
- Clicking on corrStudy button box runs corrStudy (and associated scripts) to produce the correlation study plots.
- corrStudy does not run if trendStudy has not been run and throws a warning "Run trendStudy first!"
- Closing the add-in window closes all open data-tables and chart windows with a warning such as "This will close all open tables and charts"
How to build such a JMP add in (I am especially struggling to understand how to separate the two trendStudy and corrStudy)?
When it's too good to be true, it's neither