Hi,
The script works ok as a stand alone. it will open and merge the file - no problem.
However, after I build the UI to take more input from user for some calculation (not related to this file open up but involve in some calculation after ), it will show window to ask before it opens each file (but it will run without asking if I run it as a standalone).
I assign the script as "obj" and call out this obj after "ok" button is click.
names default to here (1);
dt_raw = current data table();
dt_raw :FW_VERSION << set data type( "character" );
//select parameters for the pareto groupping
charlist = dt_raw << get column names("character");
dt_raw << subset(
all rows,
columns(charlist),
output table("temp")
);
click =0;
nw = new window("Select Parameter for Pareto",
borderbox(left(3),top (2),
hlist box(
textBox("Select Group for Yield Analaysis"),
hlistbox(
vlistbox(
panelbox("Select group",
ColListData = col list box ( data table("temp"),all, << set data type("character"));
)
)
),
panelbox("Select Parameters",
LineupBox(NCol(2),Spacing(3),
ButtonBox("Y, Columns", colListY<<APPEND></APPEND>I think you want to make the dialog modal, so it blocks execution until it is dismissed.
modal dialog in scripting index