Y Function using data table valuesI'm trying to build multiple graph boxes, each one plots a Y Function that takes values from a data table. This should be an easy task however I'm not able to get the plots to show in the graph boxes. It works with hard coded numbers, but not with values from a Data Table
win = New Window("window", vlb = V List Box());
For (i=1, i <= N Rows(dt), i++,
vlb << Append(Graph Box(Y Function((dt:M)[i] * x ,x)));
);
Any help would be much appreciated
Automation and ScriptingRe: Y Function using data table valuesIf you look at the scripts that get created, you see that the values are not there

This is because you will have to evaluate them. Something like this should work
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
Column(dt, "height") << Set Name("M");
nw = New Window("window", vlb = V List Box());
For Each Row(dt,
Eval(EvalExpr(
vlb << Append(Graph Box(Y Function(Expr(dt[Row(), "M"]) * x ,x)));
))
);
</CODE></P>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1750157594825.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="jthi_1-1750157594825.png" style="width: 400px;"><img src="https://us.v-cdn.net/6038925/uploads/images/77001i5D138430DC26CFF8/jthi_1-1750157594825.png" role="button" title="jthi_1-1750157594825.png" alt="jthi_1-1750157594825.png" /></span></SPAN></P>
<P> </P>
<P>Also use for each row when looping over data table as it is meant for it<CODE class=" language-jsl">