I think this is a case where only literals are accepted. See my answer to
for a work-around.
Thanks for the post. I am still having problems with this. It looks like it is working correctly, but then the output is wrong. If I run the following script:
XBar_R_BL = 4;
Sample Label( :DateTime ),
Sample Size( SAMPLESIZESUB1) ,
KSigma( 3 ),
Chart Col( :Value, XBar, R ),save summaries)),expr(SAMPLESIZESUB1),XBar_R_BL);
TempChart1 = eval (TempChartExp);
The show statement gives the following:
TempChartExp = Control Chart(Sample Label(:DateTime), Sample Size(4), KSigma(3), Chart Col(:Value, XBar, R), save summaries);
Which is exactly what I wanted. However, when the eval statement is executed, I get a data table with 1 row and a chart with one point. If I copy the script from the chart, I get:
Control Chart( Sample Label( :c000004 ), KSigma( 3 ), Chart Col( :Value, XBar, R ) )
So it has changed the column for the sample label and it has dropped the sample size al together. Any help is appreciated.