The Detail Table can be a Detail of an SDC (using the "linkid" property) or a Detail of a Detail (using the "detaillinkid" property). For example:
sdcid = LV_EVENTDEF (this is the s_eventdef table)
linkid = s_eventdefsampletype (this is the detail link)
detaillinkid = s_eventdefstspecimendef; s_eventdefstatworkitemmap (these are the details of the detail)
To insert data into the table defined by the "linkid" property, specify values for sdcid, keyid(1,2,3), and linkid.
To insert data into the table defined by the "detaillinkid" property, specify values for sdcid, keyid(1,2,3), linkid, and detaillinkid. If "detaillinkid" is passed as an argument to the Action, the Action updates the two detaillinktables: s_eventdefstspecimendef and s_eventdefstatworkitemmap.
Example of a detail of the specified SDC:
A record is added to the detail for each SDI. Add properties to
specify the record. The example below adds Parameter Cu to the Metals Parameter List. This is actually adding the Cu
record to the ParamListItem table. You must always add properties to specify values needed for the operation you want to
perform. In the example below, adding just the paramid Cu and paramtype Standard will add Cu to the Metals Parameter
List. However, if you want to enter data for this Parameter, you must also specify the data type
(this is numeric data, so
datatype = N), the Replicate number (numreplicates = 1), and whether or not data entry is mandatory for that Parameter
(mandatoryflag = Y).
For single record:
sdcid = ParameterList
keyid1 = Metals
keyid2 = 1
keyid3 = 1
linkid = paramlistitems
Add these properties:
paramid = Cu
paramtype = Standard
datatype = N
numreplicates = 1
mandatoryflag = Y
For multiple records:
sdcid = ParameterList
keyid1 = Assay;Assay;Metals;Metals
keyid2 = 1;1;1;1
keyid3 = 1;1;1;1
linkid = paramlistitems
Add these properties:
paramid = Sodium;Calcium;Cesium;Francium
paramtype = Standard;Standard;Standard;Standard
Also we can pass auditreason, auditactivity, auditsignedflag as arguments to this action as below
auditreason=Add parameters
auditactivity=Add
auditsignedflag=N