Check box won't show up in an input prompt input// New dialog for script selection
scripts = {"Box Plot", "Box Plot_sublot_trend", "Box Plot_duration_trend", "Box Plot_FT1vsFT2", "Tabulation", "CDF&PDF11"};
scriptSelections = J(1, N Items(scripts), 0);
// Initialize the checkboxes array
cb = {};
nw2 = New Window("Script Selection", <<MODAL></MODAL>So I have several sub scripts for my main script to call, I wanted to create a checkbox where the user can select which sub scripts to run (from Box Plot", "Box Plot_sublot_trend", "Box Plot_duration_trend", "Box Plot_FT1vsFT2", "Tabulation", "CDF&PDF11.) But no matter what I do I only get an empty window with the line " Select Scripts to run".
How can I solve this? Thanks!
Automation and ScriptingData AccessWindowsRe: Check box won't show up in an input prompt inputThere is no need to use For loop with check boxes. Display Functions (jmp.com) and Construct Display Boxes for New Windows (jmp.com)
This might not be exactly correct but gives an idea how to use checkboxes
Names Default To Here(1);
// New dialog for script selection
scripts = {"Box Plot", "Box Plot_sublot_trend", "Box Plot_duration_trend", "Box Plot_FT1vsFT2",
"Tabulation", "CDF&PDF11"};
scriptSelections = J(1, N Items(scripts), 0);
// Initialize the checkboxes array
cb = {};
nw2 = New Window("Script Selection",
<<MODAL></MODAL>
Also do not use << close window on modal window, you will run into all sorts of issues.
Re: Check box won't show up in an input prompt inputThanks for the reply, I got that to work, but once I integrated the "<
// New dialog for script selection
scripts = {"Box Plot", "Box Plot_sublot_trend", "Box Plot_duration_trend", "Box Plot_FT1vsFT2", "Tabulation", "CDF&PDF11"};
// Initialize the checkboxes array
cb = {};
nw2 = New Window("Script Selection",
<<MODAL></MODAL>Re: Check box won't show up in an input prompt inputAs you are using << modal window you have to collect the results before it is closed
nw2 = New Window("Script Selection",
<<MODAL></MODAL>
and then remove selectedScripts = cb << get selected after the modal. You should also remove all the parts where you are trying to close nw2 as it is already closed when user presses OK/Cancel.
Names Default To Here(1);
scripts = {"Box Plot", "Box Plot_sublot_trend", "Box Plot_duration_trend", "Box Plot_FT1vsFT2",
"Tabulation", "CDF&PDF11"};
nw2 = New Window("Script Selection",
<<MODAL></MODAL>Re: Check box won't show up in an input prompt inputThank you so much!!