I wish to have a script that allow me to select columns from the chosen data table (which are still open). I started the script by choosing from list of opened data table. Somehow, this chosen data table does not assign to ColumnDialog
How to set the current data table based by selecting from open data table list and have it assigned to ColumnDialog?
My script is as followed:
Data
OpenDT = List();
For( i = 1, i <= N Table(), i++, Insert Into( OpenDT, Data Table(i) ));
dlgDT = Dialog( "Please select 1 Data Table for analysis",
VList(selectDT = List Box( OpenDT)) ,
HList (Button ("OK", dt_name = selectDT << Get Name, set << current data table (dt_name)),
Button ("Cancel", Stop())
));
colDT = ColumnDialog ( Title ("Test"),
L1uSelect = ColList ("L1 u_prime : ", Max Col (1), Min Col (1), DataType ( Numeric )),
L1vSelect = ColList ("L1 v_prime : ", Max Col (1), Min Col (1), DataType ( Numeric )),
L2uSelect = ColList ("L2 u_prime : ", Max Col (1), Min Col (1), DataType ( Numeric )),
L2vSelect = ColList ("L2 v_prime : ", Max Col (1), Min Col (1), DataType ( Numeric ))
);
L1u = colDT["L1uSelect"];
L1v = colDT["L1vSelect"];
L2u = colDT["L2uSelect"];
L2v = colDT["L2vSelect"];