Hi community. I'm having trouble on this scripts from ChatGPT. I want to build a scripts that can pick certain column in 'Choice Box' and set the Spec Limit upper & lower also shows as graph reference lines on Column Properties. After that it will open the Fit Y by X graph and shows like picture below. Please help... @txnelson
// Open a data table or replace "Data Table Name" with the name of your data table
dt = Current Data Table();
// Get the column names from the data table
columnNames = dt << Get Column Names("String");
// Create a new choice list
cl = New Window("Column Selection",
H List Box(
Choice Box(
columnNames,
"Select a Column",
Value(columnNames[1]),
Set Selected
),
Button Box("OK",
<<CLOSE window=""></CLOSE>