The user selects a point on a chart. The script is then run where the user selects an option in a modal check box, "start" or "end". The script copies the selected row of data to another table, dt2. This part works fine. I cannot seem to append the value selected in the check box into column called "position" for the same row that was just added by the concatenate statement.
//Modal (non-Modal) Retrieval in OK button
//Initialize
cycleList = {"start", "end"};
rb_c = 0;
New Window( "Select start/end", <<Modal, // comment out Modal and run this block
Text Box( "Please select if start of cycle or end" ),
Text Box( " " ),
H List Box(
Panel Box( "Cycle",
Lineup Box( 1,
rb_cycle = Radio Box( cycleList, <<Set( rb_g ) )
) // end LineupBox
), //end PanelBox
Panel Box( "Action",
V List Box(
ok_btn = Button Box( "OK",
rb_c = rb_cycle << Get;
wait(0);
dt2 << Go To (6);
dt2 <<go to row(nrow(dt2);
Values(rb_c));
Show(rb_c, cycleList[rb_c],
// Get Selected returns the list value
(rb_cycle << Get selected) )
), //end OK
cncl_btn = Button Box( "Cancel" )
)
)
)
);
dt = Data Table ("Big Class");
dt2 = Data Table ("BigClass2");
dt3 = dt << subset( Selected Rows( 1 ), Selected columns only( 0 ) );
dt2 << concatenate( dt3, AppendToFirstTable( 1 ) );
dt3 << Close Window;