Subscribe Bookmark RSS Feed

JSL: How can I set the variables for process capability from a list?

uwe_hiss

Community Trekker

Joined:

Aug 12, 2015

Hello,

my list of dataColName contains the column headers that I want to use as variables for process capability.

dataColName = dt_data << GetColumnNames( Numeric, String );

repWin = New Window( sTableName, container = V List Box() );

For( k = 1, k <= N Items( dataColName ), k++,

  content = V List Box(

  dt_data_sub <<  Process Capability(

  //Process Variables( :Assay, :Dissolution, :Weight ),

  Process Variables( dataColName ),

  Individual Detail Reports( 1 ),

  Capability Box Plots( 0 ),

  Within Sigma Summary Report( 1 ),

  Name( "AIAG (Ppk) Labeling" )(0),

  Goal Plot( 0, Show Within Sigma Points( 1 ), Show Overall Sigma Points( 0 ) ),

  {dataColName << Process Capability Analysis(

  Overall Sigma Capability( 0 ),

  Nonconformance( 0 ),

  Histogram( 0 ))}

  )

  );

  container << Append( content );

);


Why tells me the log:

"Specified Column not found in data table. in access or evaluation of 'List' , {/*###*/dataColName, k}

Process Capability cannot be launched because none of the processes can be found in the data table." ?


It works fine in

Control Chart (Chart Col (dataColName, ...


regards,

Uwe

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Goal

Process Variables( { dataColName } ),

3 REPLIES
Solution

Goal

Process Variables( { dataColName } ),

ms

Super User

Joined:

Jun 23, 2011

I don't know why, but from I've noticed that whether an argument is evaluated or not varies among platforms.

Here, the argument of Process Variables() appears not to be evaluated; a column name is explicitly required. However using a variable should work if the evaluation is forced with Eval()

Eval(dataColName[k])

uwe_hiss

Community Trekker

Joined:

Aug 12, 2015

Hi MS,

thanks for the tip.

I found out, it works with additional braces.


Uwe