Add(Int32,Int32,DateTime,String,String,Nullable<Int32>,Nullable<Int32>,String,String,String,Nullable<Int32>,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,DateTime,Int32) Method
- Last UpdatedNov 06, 2025
- 8 minute read
The Add() method adds a new data log record to the Data_Log table.
'Declaration
Public Overloads Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal grpId As Integer, _
ByVal sampleTimeUtc As Date, _
ByVal woId As String, _
ByVal operId As String, _
ByVal seqNo As Nullable(Of Integer), _
ByVal stepNo As Nullable(Of Integer), _
ByVal itemId As String, _
ByVal lotNo As String, _
ByVal sublotNo As String, _
ByVal entId As Nullable(Of Integer), _
ByVal genealogyId As String, _
ByVal segmentRequirementId As String, _
ByVal segmentResponseId As String, _
ByVal value1 As String, _
ByVal value2 As String, _
ByVal value3 As String, _
ByVal value4 As String, _
ByVal value5 As String, _
ByVal value6 As String, _
ByVal value7 As String, _
ByVal value8 As String, _
ByVal value9 As String, _
ByVal value10 As String, _
ByVal value11 As String, _
ByVal value12 As String, _
ByVal value13 As String, _
ByVal value14 As String, _
ByVal value15 As String, _
ByVal value16 As String, _
ByVal value17 As String, _
ByVal value18 As String, _
ByVal value19 As String, _
ByVal value20 As String, _
ByVal value21 As String, _
ByVal value22 As String, _
ByVal value23 As String, _
ByVal value24 As String, _
ByVal value25 As String, _
ByVal value26 As String, _
ByVal value27 As String, _
ByVal value28 As String, _
ByVal value29 As String, _
ByVal value30 As String, _
ByVal value31 As String, _
ByVal value32 As String, _
ByVal value33 As String, _
ByVal value34 As String, _
ByVal value35 As String, _
ByVal value36 As String, _
ByVal value37 As String, _
ByVal value38 As String, _
ByVal value39 As String, _
ByVal value40 As String, _
ByVal value41 As String, _
ByVal value42 As String, _
ByVal value43 As String, _
ByVal value44 As String, _
ByVal value45 As String, _
ByVal value46 As String, _
ByVal value47 As String, _
ByVal value48 As String, _
ByVal value49 As String, _
ByVal value50 As String, _
ByVal value51 As String, _
ByVal value52 As String, _
ByVal value53 As String, _
ByVal value54 As String, _
ByVal value55 As String, _
ByVal value56 As String, _
ByVal value57 As String, _
ByVal value58 As String, _
ByVal value59 As String, _
ByVal value60 As String, _
ByVal value61 As String, _
ByVal value62 As String, _
ByVal value63 As String, _
ByVal value64 As String, _
ByRef lastEditAt As Date, _
ByRef rowId As Integer _
)
'Usage
Dim sessionId As Integer
Dim grpId As Integer
Dim sampleTimeUtc As Date
Dim woId As String
Dim operId As String
Dim seqNo As Nullable(Of Integer)
Dim stepNo As Nullable(Of Integer)
Dim itemId As String
Dim lotNo As String
Dim sublotNo As String
Dim entId As Nullable(Of Integer)
Dim genealogyId As String
Dim segmentRequirementId As String
Dim segmentResponseId As String
Dim value1 As String
Dim value2 As String
Dim value3 As String
Dim value4 As String
Dim value5 As String
Dim value6 As String
Dim value7 As String
Dim value8 As String
Dim value9 As String
Dim value10 As String
Dim value11 As String
Dim value12 As String
Dim value13 As String
Dim value14 As String
Dim value15 As String
Dim value16 As String
Dim value17 As String
Dim value18 As String
Dim value19 As String
Dim value20 As String
Dim value21 As String
Dim value22 As String
Dim value23 As String
Dim value24 As String
Dim value25 As String
Dim value26 As String
Dim value27 As String
Dim value28 As String
Dim value29 As String
Dim value30 As String
Dim value31 As String
Dim value32 As String
Dim value33 As String
Dim value34 As String
Dim value35 As String
Dim value36 As String
Dim value37 As String
Dim value38 As String
Dim value39 As String
Dim value40 As String
Dim value41 As String
Dim value42 As String
Dim value43 As String
Dim value44 As String
Dim value45 As String
Dim value46 As String
Dim value47 As String
Dim value48 As String
Dim value49 As String
Dim value50 As String
Dim value51 As String
Dim value52 As String
Dim value53 As String
Dim value54 As String
Dim value55 As String
Dim value56 As String
Dim value57 As String
Dim value58 As String
Dim value59 As String
Dim value60 As String
Dim value61 As String
Dim value62 As String
Dim value63 As String
Dim value64 As String
Dim lastEditAt As Date
Dim rowId As Integer
DataLog.Add(sessionId, grpId, sampleTimeUtc, woId, operId, seqNo, stepNo, itemId, lotNo, sublotNo, entId, genealogyId, segmentRequirementId, segmentResponseId, value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, value11, value12, value13, value14, value15, value16, value17, value18, value19, value20, value21, value22, value23, value24, value25, value26, value27, value28, value29, value30, value31, value32, value33, value34, value35, value36, value37, value38, value39, value40, value41, value42, value43, value44, value45, value46, value47, value48, value49, value50, value51, value52, value53, value54, value55, value56, value57, value58, value59, value60, value61, value62, value63, value64, lastEditAt, rowId)
public static void Add(
int sessionId,
int grpId,
DateTime sampleTimeUtc,
string woId,
string operId,
Nullable<int> seqNo,
Nullable<int> stepNo,
string itemId,
string lotNo,
string sublotNo,
Nullable<int> entId,
string genealogyId,
string segmentRequirementId,
string segmentResponseId,
string value1,
string value2,
string value3,
string value4,
string value5,
string value6,
string value7,
string value8,
string value9,
string value10,
string value11,
string value12,
string value13,
string value14,
string value15,
string value16,
string value17,
string value18,
string value19,
string value20,
string value21,
string value22,
string value23,
string value24,
string value25,
string value26,
string value27,
string value28,
string value29,
string value30,
string value31,
string value32,
string value33,
string value34,
string value35,
string value36,
string value37,
string value38,
string value39,
string value40,
string value41,
string value42,
string value43,
string value44,
string value45,
string value46,
string value47,
string value48,
string value49,
string value50,
string value51,
string value52,
string value53,
string value54,
string value55,
string value56,
string value57,
string value58,
string value59,
string value60,
string value61,
string value62,
string value63,
string value64,
out DateTime lastEditAt,
out int rowId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- grpId
- Required. Holds the ID of the data log group.
- sampleTimeUtc
- Required. Holds the date and time when the sample was first taken, in UTC.
- woId
- Optional. Holds the ID of the work order.
- operId
- Optional. Holds the ID of the operation.
- seqNo
- Optional. Holds the operation sequence number of the job.
- stepNo
- Optional. Holds the step number of the job.
- itemId
- Optional. Holds the ID of the item.
- lotNo
- Optional. Holds the lot number.
- sublotNo
- Optional. Holds the sublot number.
- entId
- Optional. Holds the ID of the entity.
- genealogyId
- Optional. Holds the PEM intra-segment genealogy ID.
- segmentRequirementId
- Optional. Holds the S95 segment requirement ID.
- segmentResponseId
- Optional. Holds the S95 segment response ID.
- value1
- Optional. Holds the contents of the user-defined value1 field.
- value2
- Optional. Holds the contents of the user-defined value2 field.
- value3
- Optional. Holds the contents of the user-defined value3 field.
- value4
- Optional. Holds the contents of the user-defined value4 field.
- value5
- Optional. Holds the contents of the user-defined value5 field.
- value6
- Optional. Holds the contents of the user-defined value6 field.
- value7
- Optional. Holds the contents of the user-defined value7 field.
- value8
- Optional. Holds the contents of the user-defined value8 field.
- value9
- Optional. Holds the contents of the user-defined value9 field.
- value10
- Optional. Holds the contents of the user-defined value10 field.
- value11
- Optional. Holds the contents of the user-defined value11 field.
- value12
- Optional. Holds the contents of the user-defined value12 field.
- value13
- Optional. Holds the contents of the user-defined value13 field.
- value14
- Optional. Holds the contents of the user-defined value14 field.
- value15
- Optional. Holds the contents of the user-defined value15 field.
- value16
- Optional. Holds the contents of the user-defined value16 field.
- value17
- Optional. Holds the contents of the user-defined value17 field.
- value18
- Optional. Holds the contents of the user-defined value18 field.
- value19
- Optional. Holds the contents of the user-defined value19 field.
- value20
- Optional. Holds the contents of the user-defined value20 field.
- value21
- Optional. Holds the contents of the user-defined value21 field.
- value22
- Optional. Holds the contents of the user-defined value22 field.
- value23
- Optional. Holds the contents of the user-defined value23 field.
- value24
- Optional. Holds the contents of the user-defined value24 field.
- value25
- Optional. Holds the contents of the user-defined value25 field.
- value26
- Optional. Holds the contents of the user-defined value26 field.
- value27
- Optional. Holds the contents of the user-defined value27 field.
- value28
- Optional. Holds the contents of the user-defined value28 field.
- value29
- Optional. Holds the contents of the user-defined value29 field.
- value30
- Optional. Holds the contents of the user-defined value30 field.
- value31
- Optional. Holds the contents of the user-defined value31 field.
- value32
- Optional. Holds the contents of the user-defined value32 field.
- value33
- Optional. Holds the contents of the user-defined value33 field.
- value34
- Optional. Holds the contents of the user-defined value34 field.
- value35
- Optional. Holds the contents of the user-defined value35 field.
- value36
- Optional. Holds the contents of the user-defined value36 field.
- value37
- Optional. Holds the contents of the user-defined value37 field.
- value38
- Optional. Holds the contents of the user-defined value38 field.
- value39
- Optional. Holds the contents of the user-defined value39 field.
- value40
- Optional. Holds the contents of the user-defined value40 field.
- value41
- Optional. Holds the contents of the user-defined value41 field.
- value42
- Optional. Holds the contents of the user-defined value42 field.
- value43
- Optional. Holds the contents of the user-defined value43 field.
- value44
- Optional. Holds the contents of the user-defined value44 field.
- value45
- Optional. Holds the contents of the user-defined value45 field.
- value46
- Optional. Holds the contents of the user-defined value46 field.
- value47
- Optional. Holds the contents of the user-defined value47 field.
- value48
- Optional. Holds the contents of the user-defined value48 field.
- value49
- Optional. Holds the contents of the user-defined value49 field.
- value50
- Optional. Holds the contents of the user-defined value50 field.
- value51
- Optional. Holds the contents of the user-defined value51 field.
- value52
- Optional. Holds the contents of the user-defined value52 field.
- value53
- Optional. Holds the contents of the user-defined value53 field.
- value54
- Optional. Holds the contents of the user-defined value54 field.
- value55
- Optional. Holds the contents of the user-defined value55 field.
- value56
- Optional. Holds the contents of the user-defined value56 field.
- value57
- Optional. Holds the contents of the user-defined value57 field.
- value58
- Optional. Holds the contents of the user-defined value58 field.
- value59
- Optional. Holds the contents of the user-defined value59 field.
- value60
- Optional. Holds the contents of the user-defined value60 field.
- value61
- Optional. Holds the contents of the user-defined value61 field.
- value62
- Optional. Holds the contents of the user-defined value62 field.
- value63
- Optional. Holds the contents of the user-defined value63 field.
- value64
- Optional. Holds the contents of the user-defined value64 field.
- lastEditAt
- Output. Holds the returned date and time when this record was added, for optimistic concurrency control. The lastEditAt parameter is used by other methods that modify or delete this type of record for optimistic concurrency control.
- rowId
- Output. Holds the returned row ID of the data log record that was added.
Observe the following input parameter rules:
- Required non-DB* parameters: Must pass a value. Cannot be empty or null.
- Optional non-DB* parameters: Either enter a value or pass a null. If passing a null and a default value has been defined, the default value will be used for the parameter.
- Required DB* parameters: Must pass a value. To enter an empty value for the parameter, pass DB*.null (e.g., DBInt.null).
- Optional DB* parameters: To enter no value for the parameter, pass DB*.null (e.g., DBInt.null). To use the default value for the parameter if one has been defined for the object being added, pass a null.