Get a New Window with exsisting radiobuttonsHello JMP Community,
I am new to JMP. I have a doubt. So below attached is my code, When I select combo box button and select a shape and click ok then a new window should pop up by only highlighting required columns. for example, if I select L-shape from ShapeChoice, the new window should pop up with all the given HL,VL,HH, VH, BL,UL, etc.. but only give the option to input the values only for HL,HW,HH,VL,VW,and VH.Can you please help me out. Thank you in advance.
Names Default To Here( 1 );
dlg = New Window("Dimensions",
<<MODAL></MODAL>Basic Data Analysis and ModelingData AccessData Exploration and VisualizationDesign of ExperimentsWindowsRe: Get a New Window with exsisting radiobuttonsYou might want to take a look at IfBox. This recent post might also give some ideas How to hide\unhide GUI elements effectively?
Re: Get a New Window with exsisting radiobuttonsThank you for help but I also need a user input option to it.
Re: Get a New Window with exsisting radiobuttonsSo you could use If Boxes which you set to 0/1 based on user selection?
Re: Get a New Window with exsisting radiobuttonsDidn't understand. I'm sorry but I am new to this. So can you explain me Thank you!
Re: Get a New Window with exsisting radiobuttonsI have to first better understand what you want to have. When user selects the shape, which number edit boxes should appear?
Re: Get a New Window with exsisting radiobuttonsHere is the approach I would take
Names Default To Here( 1 );
hideAll = Function( {},
tb1 << visibility("collapse");
tb2 << visibility("collapse");
tb3 << visibility("collapse");
tb4 << visibility("collapse");
tb5 << visibility("collapse");
tb6 << visibility("collapse");
tb7 << visibility("collapse");
tb8 << visibility("collapse");
tb9 << visibility("collapse");
tb10 << visibility("collapse");
tb11 << visibility("collapse");
tb12 << visibility("collapse");
hl_box << visibility("collapse");
hw_box << visibility("collapse");
hh_box << visibility("collapse");
vl_box << visibility("collapse");
vw_box << visibility("collapse");
vh_box << visibility("collapse");
bl_box << visibility("collapse");
bw_box << visibility("collapse");
bh_box << visibility("collapse");
ul_box << visibility("collapse");
uw_box << visibility("collapse");
uh_box << visibility("collapse");
comboVal = (ShapeChoice << get items)[ShapeChoice << get];
If( comboVal == "Rectangle/Square",
tb1 << visibility("Visible");
hl_box << visibility("Visible");
tb4 << visibility("Visible");
vl_box << visibility("Visible");
,
comboVal == "L-Shape",
tb1 << visibility("Visible");
hl_box << visibility("Visible");
tb2 << visibility("Visible");
hw_box << visibility("Visible");
tb3 << visibility("Visible");
hh_box << visibility("Visible");
tb4 << visibility("Visible");
vl_box << visibility("Visible");
tb5 << visibility("Visible");
vw_box << visibility("Visible");
tb6 << visibility("Visible");
vh_box << visibility("Visible");
)
);
// This Expr is where all of the script is placed that is to be run after the user
// clicks on OK in the Dimensions data entry window
runtherest = Expr(
);
dlg = New Window("Dimensions",
//<<MODAL></MODAL>Re: Get a New Window with exsisting radiobuttonsSolution script is very helpful. I am also working in user information collection problem now. One of the items I am trying to collect is a lot list based on a JMP data table. I am sure there is a better way to do this, but I added a new section to the solution script that lets the user pick a directory, file, and column containing the information. Any advice to make this better? Also, I have not seen the runtherest = Expr(); method. I tried to type some simple script actions into the space between paratheses, but I could not get it to execute. What am I missing?
Names Default To Here( 1 );
hideAll = Function( {},
tb1 << visibility("collapse");
tb2 << visibility("collapse");
tb3 << visibility("collapse");
tb4 << visibility("collapse");
tb5 << visibility("collapse");
tb6 << visibility("collapse");
tb7 << visibility("collapse");
tb8 << visibility("collapse");
tb9 << visibility("collapse");
tb10 << visibility("collapse");
tb11 << visibility("collapse");
tb12 << visibility("collapse");
hl_box << visibility("collapse");
hw_box << visibility("collapse");
hh_box << visibility("collapse");
vl_box << visibility("collapse");
vw_box << visibility("collapse");
vh_box << visibility("collapse");
bl_box << visibility("collapse");
bw_box << visibility("collapse");
bh_box << visibility("collapse");
ul_box << visibility("collapse");
uw_box << visibility("collapse");
uh_box << visibility("collapse");
comboVal = (ShapeChoice << get items)[ShapeChoice << get];
If( comboVal == "Rectangle/Square",
tb1 << visibility("Visible");
hl_box << visibility("Visible");
tb4 << visibility("Visible");
vl_box << visibility("Visible");
,
comboVal == "L-Shape",
tb1 << visibility("Visible");
hl_box << visibility("Visible");
tb2 << visibility("Visible");
hw_box << visibility("Visible");
tb3 << visibility("Visible");
hh_box << visibility("Visible");
tb4 << visibility("Visible");
vl_box << visibility("Visible");
tb5 << visibility("Visible");
vw_box << visibility("Visible");
tb6 << visibility("Visible");
vh_box << visibility("Visible");
,
comboVal == "Lot List Input (from a JMP File)",
tb13 << visibility("Visible");
dir=Pick Directory(1);
files = Files In Directory(dir);
// It would be nice if display could be updated to show collected information before user makes selection.
win2=New Window ("Select File Containing Lot List",
<<MODAL></MODAL> Re: Get a New Window with exsisting radiobuttonsThere are many ways to select a data table to get your lot list. Your method seems to work. I am a little confused about your comment about updating the information.
Concerning the "runtherest", any code that you place inside of the Expr() will be executed when the OK button is click. Try replacing the section with
runtherest = Expr(
Show( shapechoice, combochoice, hl, hw, hh, vl, vw, vh, bl, bw, bh, ul, uw, uh, )
);
When you click on OK, the Show() function will print out to the JMP log the values that the user has selected or specified from the dialog box. Your job will be to add the JSL into this Expr() function that will take the specified values and perform whatever analysis/graphing that your application is intended to do.