I am on JMP13 and I understand from here that I cannot have multiple outputs from a function unless I use lists. So I have put together the following script and it works as expected.
Names Default To Here (1);
delete symbols ();
clear log ();
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
getDistChart = Function({ColName, _LSL, _USL}, {distChart},
New Window(""||ColName||" distribution",
distChart1 = dt <<DISTRIBUTION></DISTRIBUTION>
However, the following does not work
toPass= Report(dist[1])[Outline Box("weight" ), Outline Box( "Summary Statistics" ), Table Box( 1 ), Number Col Box(1)]<< get (1);
and I am wondering if I am making a mistake in the syntax for using an argument in Report()?
Try adding Eval List inside your function:
op = EvalList({distChart1, distChart2});