Hi Dave,
I would like to create a string col box which reflect the column change of a data table. For example, if I have columns {"Column 1", "Column 2"} and add a new column "Column 3" later, it will be great if the string column box can be updated automatically without any other actions.
dt=new table("Table",
New column("Column 1"),
New column("Column 2")
);
New window("",
Table box(
String Col box("Columns", dt<<get column names("String")),
Col List box(dt, all)
)
);
wait(1);
dt<<new column("Column 3");
The "get column names" is a good idea, but the string col box will not be updated automatically. Here is the comparison between String Col box and Col list box.
before adding column 3
![Tzu-Chun_0-1591638874821.png Tzu-Chun_0-1591638874821.png](https://community.jmp.com/t5/image/serverpage/image-id/24471i65FE66084ED0DBEF/image-size/medium?v=v2&px=400)
After Adding Column 3
![Tzu-Chun_1-1591638924503.png Tzu-Chun_1-1591638924503.png](https://community.jmp.com/t5/image/serverpage/image-id/24472iB1DFED7361E386B8/image-size/medium?v=v2&px=400)
Help the details helps.
Tzu-Chun