The following script works perfectly in JMP 11 and JMP 12.0, but it only produces blank report windows in JMP 12.1 and JMP 12.1 Pro:
dt = Current Data Table();
nco = n col(dt);
modelscript = dt << Get Property("Model");
Insert Into(modelscript,Expr(Run));
obj = Eval(modelscript);
obj << Residuals();
obj << close window;
ncf = n col(dt);
rc = ncf - nco;
for (idx = ncf,idx>nco,idx--,
ColName = Column(idx) << Get Name;
Distribution(
Column( Eval(ColName) ),
Quantiles( 0 ),
Summary Statistics( 0 ),
Histogram( 0 ),
Outlier Box Plot( 0 ),
Normal Quantile Plot( 1 ),
SendToReport(
Dispatch(
{},
"Distributions",
OutlineBox,
{Set Title( "Normal Probability Plot" )}
)
)
);
);
for (idx = ncf,idx>nco,idx--,
dt<<delete column(idx); // delete residual columns
);
The problem appears to be with the line in red. If I explicitly name a column, it works correctly.
Does anyone know what tI can do to make this script run in JMP 12.1?
Thank you.