UpdateSpecific Method (BomVersion)
- Last UpdatedNov 06, 2025
- 2 minute read
The UpdateSpecific() method updates selected columns of the specified BOM version record in the Bom_Ver table.
'Declaration
Public Shared Sub UpdateSpecific( _
ByVal sessionId As Integer, _
ByVal parentItemId As String, _
ByVal verId As String, _
ByVal verDate As Nullable(Of Date), _
ByVal verComments As DBString, _
ByVal preferredVer As Nullable(Of Boolean), _
ByVal disassembly As Nullable(Of 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 Nullable(Of Date)
Dim verComments As DBString
Dim preferredVer As Nullable(Of Boolean)
Dim disassembly As Nullable(Of Boolean)
Dim startEff As DBDateTime
Dim endEff As DBDateTime
Dim lastEditComment As DBString
Dim modId As String
BomVersion.UpdateSpecific(sessionId, parentItemId, verId, verDate, verComments, preferredVer, disassembly, startEff, endEff, lastEditComment, modId)
public static void UpdateSpecific(
int sessionId,
string parentItemId,
string verId,
Nullable<DateTime> verDate,
DBString verComments,
Nullable<bool> preferredVer,
Nullable<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.
- 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
Optional. Holds comments about the BOM version.
- preferredVer
Optional. Holds a flag that, if set to true, specifies that this is the preferred version to make the parent item. The default is false.
- disassembly
Optional. 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
Optional. Holdes the date/time that indicates when this BOM version becomes effective, in UTC. The default is Null, which means no limit.
- endEff
Optional. Holdes the date/time that indicates when this BOM version becomes ineffective, in UTC. The default is Null, which means no limit.
- lastEditComment
Optional. 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.
Observe the following input parameter rules:
- Optional non-DB* parameters: Either enter a new value or leave the existing value unchanged by passing a null.
- Optional DB* parameters: To clear the existing value and enter an empty value, pass DB*.null (e.g., DBInt.null). To leave the existing value unchanged, pass a null.