Then you have to send the corresponding commands after the user filled the GUI and clicked on OK.
Either: build a mini-GUI where the user can pick the columns and use the response to trigger the Variability Chart analysis:
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
colDialog = Column Dialog(
YCols = ColList( "Y", Min Col( 1 ), Max Col( 1 ), Data Type( "Numeric" ) ),
grouping = ColList( "Grouping", Min Col( 1 ), Max Col( 1 ), Data Type( "Nominal" ) ));
myPlot = Eval (Eval Expr(Variability Chart(
Y( colDialog["Ycols"][1] ),
X( colDialog["grouping"] ),
Variability Analysis( Expr(colDialog["Ycols"][1]), Show Box Plots( 1 ) ))));
mySegs=report(myPlot)[FrameBox(1)]<< find segs; // get all display elements
Filter Each({seg},(mySegs), (seg<< class name)=="BoxPlotSeg") //just keep the Box Plots
<< Set Line Color("Black")
... or use the GUI of the Variability Chart Analysis itself - and after the Report is generated, send the code to generate the box plot and change the color.
after -> <<Type( "Modal Dialog" )
new window("GUI",
<<Type( "Modal Dialog" ),
Variability Chart());
// code to generate the Box Plots and change the color
... but the <<Type( "Modal Dialog" ) prevents the GUI to generate the Report.
the result is just {Button( 1 )}
so, I am stuck at this point.