If you set a script for column switcher, in JMP 14 the script runs after the column switching is completed, but in JMP 15 it runs before the column switching.
The following example creates a graph builder plot with a column switcher, and sets the column switcher script to print the JMP version and the Y-axis title.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw = new window("Test",
gb = Graph Builder(
Size( 528, 464 ),
Show Control Panel( 0 ),
Variables( X( :name ), Y( :height ) ),
Elements( Points( X, Y, Legend( 3 ) ) ),
Column Switcher( :height, {:height, :weight} )
)
);
nw[Listboxbox( 1 )] << set script(
print(JMP Version());
print(report(gb)[TextEditBox(4)]<< Get Text());
);
If you run the script in JMP 14 and click on "weight", you get the following output. The script runs after the column has switched.
"14.1.0"
"weight"
However, if you run the same script in JMP 15, the output is different. The script runs before the column switching has happened.
"15.1.0"
"height"
This change of behavior breaks one of my JMP scripts that set the axis min/max after switching column. Any way to force the script to run after column switching in JMP 15? Thanks.