I'm trying to use a SpinBox in an interactive dialog. I want to use the value from the spin control to move across different columns of a data table
Here is my script as it exists now. It displays the overlay plot and the spin control but never updates the plot. I see in the documentation how it works with the Slider control and the GraphBox.
Names Default To Here( 1 );
Clear Globals();
// Load a processed data table and a wrapup data table. Addressable as dp and dw
Set Current Directory( "C:\Users\if1450\My Documents\JMP Test Area" );
dp = Open( "Test_Case_Data.jmp" );
SpinValue = 1;
This_Column = "MF " || Char( SpinValue );
pd = New Window( "Parse Data",
Outline Box( "Overlay Graph",
V List Box(
op = Overlay Plot(
X( :Temperature ),
Y( As Column( This_Column ) << get name ),
Separate Axes( 1 ),
Connect Thru Missing( 1 )
),
Lineup Box(
2,
nb = Number Edit Box( 2 ),
sb = Spin Box(
Function( {value},
nb << Increment( value );
SpinValue = nb << get;
This_Column = "MF " || Char( SpinValue );
op << reshow;
)
)
),
)
)
);
nb << Set Increment( 1 );
I have attached the script and the data table.