UpdateSpecific Method (Oper)
- Last UpdatedNov 06, 2025
- 3 minute read
The UpdateSpecific() method updates selected columns for the specified operation record in the Oper table.
'Declaration
Public Shared Sub UpdateSpecific( _
ByVal sessionId As Integer, _
ByVal processId As String, _
ByVal operId As String, _
ByVal operDesc As DBString, _
ByVal defRejectRate As DBDouble, _
ByVal displaySeq As Nullable(Of Integer), _
ByVal checkInv As Nullable(Of Boolean), _
ByVal schedToEntId As DBInt, _
ByVal operType As DBString, _
ByVal operCost As DBDouble, _
ByVal deviationAbove As Nullable(Of Double), _
ByVal deviationBelow As Nullable(Of Double), _
ByVal assocFile As DBString, _
ByVal assocFileType As DBString, _
ByVal reworkCd As DBString, _
ByVal notes As DBString, _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal lastEditComment As DBString, _
ByRef modId As String _
)
'Usage
Dim sessionId As Integer
Dim processId As String
Dim operId As String
Dim operDesc As DBString
Dim defRejectRate As DBDouble
Dim displaySeq As Nullable(Of Integer)
Dim checkInv As Nullable(Of Boolean)
Dim schedToEntId As DBInt
Dim operType As DBString
Dim operCost As DBDouble
Dim deviationAbove As Nullable(Of Double)
Dim deviationBelow As Nullable(Of Double)
Dim assocFile As DBString
Dim assocFileType As DBString
Dim reworkCd As DBString
Dim notes As DBString
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim modId As String
Oper.UpdateSpecific(sessionId, processId, operId, operDesc, defRejectRate, displaySeq, checkInv, schedToEntId, operType, operCost, deviationAbove, deviationBelow, assocFile, assocFileType, reworkCd, notes, spare1, spare2, spare3, spare4, lastEditComment, modId)
public static void UpdateSpecific(
int sessionId,
string processId,
string operId,
DBString operDesc,
DBDouble defRejectRate,
Nullable<int> displaySeq,
Nullable<bool> checkInv,
DBInt schedToEntId,
DBString operType,
DBDouble operCost,
Nullable<double> deviationAbove,
Nullable<double> deviationBelow,
DBString assocFile,
DBString assocFileType,
DBString reworkCd,
DBString notes,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
DBString lastEditComment,
ref string modId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- processId
- Required. Holds the ID of the process whose operation is being updated.
- operId
- Required. Holds the ID of the operation that is being updated.
- operDesc
- Optional. Holds the operation description.
- defRejectRate
- Optional. Holds the default reject rate assumed in this operation (e.g., 0.02 = 2% rejects expected).
- displaySeq
- Optional. Holds the sequence of operations independently of the operation ID. Used to sequence operations in tree and flow diagrams.
- checkInv
- Optional. Holds a flag that, if set to true, specifies that sufficient component inventory is required to change to the Ready state.
- schedToEntId
- Optional. Holds the ID of the entity to which the operation should be scheduled.
- operType
- Optional. Holds the type of operation. Can be used to help determine which job instances to create when importing schedules from an ERP system.
- operCost
- Optional. Holds the additional (non-labor, non-machine, or non-material) cost associated specifically with this operation.
- deviationAbove
- Optional. Holds the portion of the start quantity above which total production can deviate.
- deviationBelow
- Optional. Holds the portion of the start quantity below which total production can deviate.
- assocFile
- Optional. Holds the file type of the file associated with the operation.
- assocFileType
- Optional. Holds the path and file name of the file associated with the operation.
- reworkCd
- Optional. Holds the rework behavior for this operation.
- notes
- Optional. Holds the notes about this operation.
- spare1
- Optional. Holds the contents of the user-defined spare1 field.
- spare2
- Optional. Holds the contents of the user-defined spare2 field.
- spare3
- Optional. Holds the contents of the user-defined spare3 field.
- spare4
- Optional. Holds the contents of the user-defined spare4 field.
- lastEditComment
- Optional. Holds comments that describes 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.