In JMP 14, if you set a script for a column switcher, the script runs after the column switching is completed. In JMP 15, however, the script runs before the column switching.
The following example creates a graph builder 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 switching is completed.
"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 sets the axis min/max after switching columns... Any way to force the script to run after the column switching is completed in JMP 15?
Thanks.