So I want to create an application that will prompt the user to specify a certain number of data tables after which the user can pick the corresponding tables. Also I would like to add columns to each of those tables. I am still new to jmp/jsl but below is my script which of course does not work, Any help is well appreciated;
New Window( "Number of Data Tables",
<<Modal,
Text Box( "Number of Data Tables" ),
variablebox = Number Edit Box(),
Button Box( "OK" ),
Button Box( "Cancel" )
);
N = Variablebox << get;
For( i = 1, i <= N Items( dt ), i++,
dt = Open()
Names Default To Here(1);
dt=Current Data Table (i);
dt << New Column("ColumnA", Numeric, continous, Format("Best", 5));
dt << New Column("ColumnB", Numeric, continous, Format("Best", 5));
);
PS: I know the script for adding additonal columns has to go in the For loop somehow but if I can even open the data tables, then how can i even add the columns.
PMroz jordanhiller@jmp chris.kirchberg CHFields MarkBailey