I've converted a column dialog() command to a New Window() display tree, and I'm having trouble with getting some of the data out of the dialog window. Ideally, I just want to grab the columns specified in the dialog window (Y and grouping variables) as well as a radio button setting and a checkbox state and a text edit box value. I was hoping to just preload this into some variables and load a function, but I can't even figure out how to get the variables from within the display tree, as the "Show(yList)" command within the ButtonBox("OK", ) shows an empty list.
Here's the function declared at the top of the script:
startAnaFn = Function ({x},
show(numParam);
show(yList);
Show(gList);
);
Here's a shorter version of my dialog:
anaDialog = new window("Select Parameters To Analyze",
| | | | | | vlistbox( |
| | | | | | | colListY = ColListBox(width(lbWidth),nLines(6), minitems(1)), |
| | | | | | | checkObj=check box({"Use inverse of Y Selection"},<<Set(0,0)), |
| | | | | | ), |
numParam = text edit box("20"),
| hlistbox( |
| | | |
| | textbox(" "), |
| | ButtonBox("Ok", |
| | | ::yList = colListY << get selected; |
| | | show (yList); // <-- this does not show expected data either |
| | | gList = colListG << get selected; |
| | | anaDialog << close window; |
| | | startAnaFn(1)), |
| | textbox(" "), |
| | ButtonBox("Cancel", anaDialog << close window), |
),
);
PS: If this is a JMP forum, why does it assume pasted JSL code is in a table format?