Update Method (JobBomDefault)
- Last UpdatedNov 06, 2025
- 2 minute read
The Update() method updates all columns of the specified job BOM default record in the Job_Bom_Default table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal itemId As String, _
ByVal entId As Integer, _
ByVal bomPos As Integer, _
ByVal storageEntId As DBInt, _
ByVal rejectEntId As DBInt, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim itemId As String
Dim entId As Integer
Dim bomPos As Integer
Dim storageEntId As DBInt
Dim rejectEntId As DBInt
Dim lastEditComment As DBString
Dim lastEditAt As Date
JobBomDefault.Update(sessionId, itemId, entId, bomPos, storageEntId, rejectEntId, lastEditComment, lastEditAt)
public static void Update(
int sessionId,
string itemId,
int entId,
int bomPos,
DBInt storageEntId,
DBInt rejectEntId,
DBString lastEditComment,
ref DateTime lastEditAt
)
Parameters
- sessionId
Required. Holds the session ID and thus the user who is making this method call.
- itemId
Required. Holds the ID of the component item.
- entId
Required. Holds the ID of the entity on which the job is scheduled or run.
- bomPos
Required. Holds the BOM position.
- storageEntId
Required. Holds the ID of the storage entity that is used to store good production.
- rejectEntId
Required. Holds the ID of the storage entity that is used to store rejected production.
- lastEditComment
Required. Holds comments that describe why this record is being updated.
- lastEditAt
Required. Holds the date/time when this record was added or last updated, for optimistic concurrency control. If it is specified, the passed value must match the lastEditAt value in the record for the update to succeed.
Output. Holds the date/time value when the record was updated by this called method.