Update Method (LotAttrDefault)
- Last UpdatedNov 06, 2025
- 2 minute read
The Update() method updates all columns for the specified lot attribute record in the lot_Attr table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal woId As DBString, _
ByVal operId As DBString, _
ByVal seqNo As DBInt, _
ByVal itemId As DBString, _
ByVal attrId As Integer, _
ByVal attrValue As DBString, _
ByVal notes As DBString, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date, _
ByVal rowId As Integer _
)
'Usage
Dim sessionId As Integer
Dim woId As DBString
Dim operId As DBString
Dim seqNo As DBInt
Dim itemId As DBString
Dim attrId As Integer
Dim attrValue As DBString
Dim notes As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Date
Dim rowId As Integer
LotAttrDefault.Update(sessionId, woId, operId, seqNo, itemId, attrId, attrValue, notes, lastEditComment, lastEditAt, rowId)
public static void Update(
int sessionId,
DBString woId,
DBString operId,
DBInt seqNo,
DBString itemId,
int attrId,
DBString attrValue,
DBString notes,
DBString lastEditComment,
ref DateTime lastEditAt,
int rowId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- woId
- Required. Holds the ID of the work order.
- operId
- Required. Holds the ID of the operation.
- seqNo
- Required. Holds the job sequence number of the operation.
- itemId
- Required. Holds the ID of the produced item.
- attrId
Required. Holds the ID of the attribute that is being updated.
- attrValue
Required. Holds the attribute value that is being updated.
- notes
Required. Holds the notes that are to be assigned to the attribute.
- lastEditComment
- Required. Holds comments that describes why this record is being updated.
- lastEditAt
Required. Holds the date/time when this record was added.
Output. Holds the returned date/time when this record was added. The lastEditAt parameter is used by other methods that modify or delete this type of record for optimistic concurrency control.
- rowId
Required. Holds the ID of the row that is to be updated.