Appending to a Col List Box is not workingI have tried the script below on both JMP 17.1 and JMP 18.0. (I'm fairly sure it's me and not a bug). I am having the user select their table from any of their open tables and then choose a Y column, X column and a Grouping column in the form of Col List Boxes. The issue is that the script only works for the last table in the Combo Box. It won't work for any of the first 2 tables shown in my example below. When you press any of the buttons ("Y col", "X col" or "Group col") it doesn't fill in the selected columns you've chosen. BUT, it does work if you select the last table in the drop-down list. Any ideas would be appreciated. BTW, I am trying the loosely follow the scripting in the Example 3 of the Scripting Index for Col List Boxes.
names default to here(1);
dt.crops = open("$sample_data\crops.jmp");
dt.bigclass = open("$sample_data\big class.jmp");
dt.cars = open("$sample_data\cars.jmp");
windowList = get window list(type("data tables")) << get window title();
insert into(windowList, "Choose", 1); //make the user change the combo box to one of the tables
nwSelect = new window("Choose table and columns", <<MODAL></MODAL>Automation and ScriptingRe: Appending to a Col List Box is not workingThe Active data table is not being set when a table is selected that is not the most recent table loaded. Add the following line after the line
colNames = dt << get column names;
Current Data Table( dt );
That will set the active data table to the table selected from the combo box
Re: Appending to a Col List Box is not working@txnelson , Thank you!