QCApply Action

Purpose

This Action:

Creates new QCSamples and Data Sets while creating a new QCBatch.

Applies a QCSampleType to a QCBatch.

Input Properties

Property Id

Type

Property Name and Description

Mandatory

resolvelink yesno Resolve Link
No (default) creates new QCSamples. Yes creates Data Sets (applies the WorkItem to the QC Sample), but does not create new QCSamples.1
Yes
qcbatchid string QC Batch ID
Identifier of the QCBatch in which the QCSample is created. This Action gets the sdcid and templateid for creating the new QCSample.

QC Batch ID is needed only when resolvelink=no.

Yes
qcbatchsampletypeid  string QC Batch Sample Type ID
Identifier of the QCBatch Sample Type, which:
  • Defines the QCSample for the QCBatch.
  • Identifies any TestMethods needed for the QCSample.

QC Batch Sample Type ID is needed only when resolvelink=no.

Yes
qcbatchitemid  string

QC Batch Item ID
Identifier of the QCBatch Item.

QC Batch Item ID is needed only when resolvelink=yes.

Yes
copies string Copies
Number of QCSamples in the QCBatch. This defaults to "1".

Number of copies is needed only when resolvelink=No.

No
sdcid string

SDC
Identifier of the SDC on which Actions will be executed.

SDC ID is needed only when resolvelink=Yes.

No
keyid1
keyid2
keyid3
string

SDI Key1, SDI Key2, SDI Key3
Key values of the SDI. Up to three Keys uniquely identify each SDI.

Key IDs are needed only when resolvelink=Yes.

No
linkedto string

Linked To
Stores the relative/absolute linkedto positions of the QCSample (the respective QC Sample points to these positions). This property copies the Data Sets from the QC Sample to which it points. If no Test Method is available for the respective QCBatchSampleType, this property copies onoly Data Sets.

Linked To is needed only when resolvelink=Yes.

No
linkedtoqcbatchitemid string

Linked To QCBatch Item ID
Identifier of the QC Batch Item linked to the QCSample.

Linked To QCBatch Item ID is needed only when resolvelink=Yes.

No
1

You can specify multiple values for these Properties. Use a semicolon to separate each value.

Using the following properties as an example, when the resolvelink=Yes:

Property Name Value
Resolve Link Y
SDC Sample
SDI Key1 S-050712-00003;S-050712-00003;S-050712-00004;S-050712-00004
QC Batch Sample Type ID QCBS0506-00004
QC Batch ID QCB0705-00001;QCB0705-00001;QCB0705-00001;QCB0705-00001
QC Batch Item ID 1932005-4;1932005-4;1932005-5;1932005-5
Parameter List Alkali Metals;Alkali Metals;Alkali Metals;Alkali Metals
Parameter List Version 1;1;1;1
Parameter List Variant Prep;1;Prep;1
Data Set Number 1;1;1;1

Using the following properties as an example, when the resolvelink=No:

Property Name Value
Resolve Link N
QC Batch ID QCB0705-00001
QC Batch Sample Type ID QCBS0506-00004
Copies 4

Output Properties

Property Id

Type

Property Name and Description

newkeyid1 String New Key ID1
Key ID of the new QCSample.

QCSample is created only when revolvelink=No.

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_qcbatchitem, sdiworkitem, sdiworkitemitem tables.