Update Method (BomVersion)
- Last UpdatedMar 17, 2026
- 2 minute read
The Update() method updates all columns of the specified BOM version record in the Bom_Ver table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal parentItemId As String, _
ByVal verId As String, _
ByVal verDate As Date, _
ByVal verComments As DBString, _
ByVal preferredVer As Boolean, _
ByVal disassembly As Boolean, _
ByVal startEff As DBDateTime, _
ByVal endEff As DBDateTime, _
ByVal lastEditComment As DBString, _
ByRef modId As String _
)
'Usage
Dim sessionId As Integer
Dim parentItemId As String
Dim verId As String
Dim verDate As Date
Dim verComments As DBString
Dim preferredVer As Boolean
Dim disassembly As Boolean
Dim startEff As DBDateTime
Dim endEff As DBDateTime
Dim lastEditComment As DBString
Dim modId As String
BomVersion.Update(sessionId, parentItemId, verId, verDate, verComments, preferredVer, disassembly, startEff, endEff, lastEditComment, modId)
public static void Update(
int sessionId,
string parentItemId,
string verId,
DateTime verDate,
DBString verComments,
bool preferredVer,
bool disassembly,
DBDateTime startEff,
DBDateTime endEff,
DBString lastEditComment,
ref string modId
)
Parameters
- sessionId
Required. Holds the session ID and thus the user who is making this method call.
- parentItemId
Required. Holds the ID of the parent item of the BOM version.
- verId
Required. Holds the ID of the BOM version.
- verDate
Required. Holds the date when a version was created or last modified. The default is current date and time.
- verComments
Required. Holds comments about the BOM version.
- preferredVer
Required. Holds a flag that, if set to true, specifies that it is the preferred version to make the parent item. The default is false.
- disassembly
-
Required. Holds a flag that, if set to true, specifies that the BOM determines what can be obtained from the main item. The default is false.
- startEff
Required. Holds the date/time that indicates when this BOM version becomes effective, in UTC. The default is null, which means no limit.
- endEff
Required. Holds the date/time that indicates when this BOM version becomes ineffective, in UTC. The default is Null, which means no limit.
- lastEditComment
Required. Holds comments that describe why this record is being updated.
- modId
Required. Holds the modification ID assigned the last time this record was added or updated, for optimistic concurrency control. The passed value must match the record's modId for the record to be updated.
Output. Holds the new modification ID to identify this update of this record.