Hi all, finally broke down and made an account. Thanks for all the time you guys put into generating solutions and answering questions.
Problem: Cannot use "Current Window()" command in JMP 7. Is there an equivalent? Alternatively is there a clean way to perform this same task of adding a graphics script to the current plot in JMP 7? Is there a JSL syntax/command guide somewhere for JMP 7 I can peruse?
Background:
I generated the following script for JMP 13 that adds a graphics script to the current plot. I do this by including a file on the server and then calling an expression/function from the menu code to add the graphics script.
Some users want backwards compatibility to JMP 7. It doesn't appear that Current Window() is an avalible command in JMP 7. Help.
Script that does the work (and works in JMP 13)
win = Current Window();
sel = win[FrameBox( 1 )]; //for reports with frame 1 as the bivariate fit
sel << Add Graphics Script(
Description("FooBar Boxes"),
// Code for Foobar Boxes goes here
// This is the same as the code pasted into a plot under right-click > Customize > +
)
Error code from JMP 7:
Name Unresolved: Current Window in access or evaluation of 'Current Window' , Current Window()
In the following script, error marked by /*###*/
win = Current Window()/*###*/;
Thanks,
-AA