ApplyQCMethod Action

Purpose

Creates a QCBatch by applying a QCMethod.

Input Properties

Property Id

Type

Property Name and Description

Mandatory

qcbatchid string QC Batch ID
Identifier of the new QCBatch.
Yes
qcmethodid  string QC Method ID
Identifier of the QCMethod. The QCBatch is based on this QCMethod.
Yes
allsamples  string All Samples
String containing details about the Unknown Samples and QC Samples. These Samples are processed in the order specified in the string.

When specifying multiple Samples:

Separate Sample Ids with a pipe (|).

Separate column values in the Sample with a comma.1

This is the same format used by the detailmaint and qcbatchitemmaint elements.

Yes
columns string

Columns
String containing all column identifiers required for Samples specified by the "allsamples" property.

When specifying multiple columns, separate each with a pipe (|).1

Yes
qcbatchdesc string QC Batch Desc
Text description of the QCBatch.
Yes
qcbatchnotes string QC Batch Notes
Text notes regarding the QCBatch.
Yes
1

You can specify multiple values for the "allsamples" and "columns" Properties.

A single QCBatch is created based on a particular QCMethod, which has multiple Samples aligned with their respective columns. Use a pipe (|) to separate each value. Each record must have ,N at the end of the record. Example:

Property Name Value
QC Batch ID QCB0705-00001
QC Batch Desc Quality Control Batch for Metals
QC Batch Notes This QCBatch is created for the Metals.
QC Method ID MetalQCMethod
All Samples 1,,(Auto),Control,QCMST0605-00001,Control,,,,N|2,,(Auto),Control,QCMST0605-00001,Control,,,,N| 3,,S-041202-00037,Unknown,Unknown,,,sdcid,,N|4,,(Auto),Blank,QCMST0505-00007,Blank,,,,N|5,,S-041202-00039,Unknown,Unknown,,,sdcid,,N
Columns usersequence|linktoqcbatchitemid|keyid1|qcsampletype|qcbatchsampletypeid|
qcbatchitemdesc|linkedto|s_qcbatchid|s_qcbatchitemid

Output Properties

Property Id

Type

Property Name and Description

qcbatchid String QC Batch ID
Identifier of the new QCBatch.

Also returns the following additional Values:

Property Id

Value

Description

(return) 1 The Action has successfully executed.
>1 The Action has not successfully executed.

 

Afftected Tables

This Action inserts a new record in the SDIData, SDIDataItem, s_Sample, s_QCBatch, S_QCBatchItem, s_QCBatchSampleType, s_QCBatchParam, S_QCBatchEvalRule, s_QCBatchEvalRuleParam, SDIWorkitem, SDIWorkitemitem tables.