I have got a working function which plots trends and distribution for measured parameters (columns in a table1) using test limits (LSL, USL in another table, table2).
Names Default To Here (1);
getTrendChartAndDist = Function({colName, LSL, USL}, {TrendDistChart},
New Window(""||colName||" Trend & Distribution",
Graph Builder(
something here .....
);
return(TrendDistChart);
);In order to plot the charts for all measured parameters, now need to loop through each column of a data table to go into "colName" (say col 3 to col 9 for the measured parameters in table1) and simultaneously get the limits (LSL and USL) for each colName from another table, table2 (table2 has each measured parameter in rows, with LSL and USL in separate columns). I am messing up the simultaneous looping. How to go about this? Any help is appreciated.