Add Method (DataLog16)
- Last UpdatedNov 06, 2025
- 4 minute read
The Add() method adds a new data log record to the Data_Log_ table.
Note: The methods in the DataLog16 class should not be used. They have been replaced by the DataLog class methods.
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal grpId As Integer, _
ByVal sampleTimeLocal As Date, _
ByVal woId As DBString, _
ByVal operId As DBString, _
ByVal seqNo As DBInt, _
ByVal stepNo As DBInt, _
ByVal itemId As DBString, _
ByVal lotNo As DBString, _
ByVal sublotNo As DBString, _
ByVal shiftStartLocal As Date, _
ByVal shiftId As Integer, _
ByVal entId As DBInt, _
ByVal genealogyId As DBString, _
ByVal segmentRequirementId As DBString, _
ByVal segmentResponseId As DBString, _
ByVal value1 As DBString, _
ByVal value2 As DBString, _
ByVal value3 As DBString, _
ByVal value4 As DBString, _
ByVal value5 As DBString, _
ByVal value6 As DBString, _
ByVal value7 As DBString, _
ByVal value8 As DBString, _
ByVal value9 As DBString, _
ByVal value10 As DBString, _
ByVal value11 As DBString, _
ByVal value12 As DBString, _
ByVal value13 As DBString, _
ByVal value14 As DBString, _
ByVal value15 As DBString, _
ByVal value16 As DBString, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date, _
ByRef rowId As Integer _
)
'Usage
Dim sessionId As Integer
Dim grpId As Integer
Dim sampleTimeLocal As Date
Dim woId As DBString
Dim operId As DBString
Dim seqNo As DBInt
Dim stepNo As DBInt
Dim itemId As DBString
Dim lotNo As DBString
Dim sublotNo As DBString
Dim shiftStartLocal As Date
Dim shiftId As Integer
Dim entId As DBInt
Dim genealogyId As DBString
Dim segmentRequirementId As DBString
Dim segmentResponseId As DBString
Dim value1 As DBString
Dim value2 As DBString
Dim value3 As DBString
Dim value4 As DBString
Dim value5 As DBString
Dim value6 As DBString
Dim value7 As DBString
Dim value8 As DBString
Dim value9 As DBString
Dim value10 As DBString
Dim value11 As DBString
Dim value12 As DBString
Dim value13 As DBString
Dim value14 As DBString
Dim value15 As DBString
Dim value16 As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Date
Dim rowId As Integer
DataLog16.Add(sessionId, grpId, sampleTimeLocal, woId, operId, seqNo, stepNo, itemId, lotNo, sublotNo, shiftStartLocal, shiftId, entId, genealogyId, segmentRequirementId, segmentResponseId, value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, value11, value12, value13, value14, value15, value16, lastEditComment, lastEditAt, rowId)
public static void Add(
int sessionId,
int grpId,
DateTime sampleTimeLocal,
DBString woId,
DBString operId,
DBInt seqNo,
DBInt stepNo,
DBString itemId,
DBString lotNo,
DBString sublotNo,
DateTime shiftStartLocal,
int shiftId,
DBInt entId,
DBString genealogyId,
DBString segmentRequirementId,
DBString segmentResponseId,
DBString value1,
DBString value2,
DBString value3,
DBString value4,
DBString value5,
DBString value6,
DBString value7,
DBString value8,
DBString value9,
DBString value10,
DBString value11,
DBString value12,
DBString value13,
DBString value14,
DBString value15,
DBString value16,
DBString lastEditComment,
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.
- sampleTimeLocal
- Required. Holds the date and time when sample was first taken, in local.
- 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 opeation.
- itemId
- Optional. Holds the ID of the item.
- lotNo
- Optional. Holds the lot number.
- sublotNo
- Optional. Holds the sublot number.
- shiftStartLocal
- Required. Holds the date and time when shift started, in local time
- shiftId
- Required. Holds the ID of the shift.
- 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 requirement 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.
- lastEditComment
- Optional. Holds comments that describe why this record is being added.
- lastEditAt
- Output. Holds the returned date/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.