UpdateSpecific(Int32,Int32,String,Nullable<Int32>,Nullable<Int32>,DBString,Nullable<Boolean>,DBString,DBString,DBString,DBString,DBString,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The UpdateSpecific() method updates selected columns for the specified data log group record in the Data_Log_Grp table.
This overload of the method includes the lastEditComment input parameter.
'Declaration
Public Overloads Shared Sub UpdateSpecific( _
ByVal sessionId As Integer, _
ByVal grpId As Integer, _
ByVal grpDesc As String, _
ByVal maxValue As Nullable(Of Integer), _
ByVal triggerType As Nullable(Of Integer), _
ByVal triggerDetail As DBString, _
ByVal obsolete As Nullable(Of Boolean), _
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 grpId As Integer
Dim grpDesc As String
Dim maxValue As Nullable(Of Integer)
Dim triggerType As Nullable(Of Integer)
Dim triggerDetail As DBString
Dim obsolete As Nullable(Of Boolean)
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim modId As String
DataLogGrp.UpdateSpecific(sessionId, grpId, grpDesc, maxValue, triggerType, triggerDetail, obsolete, spare1, spare2, spare3, spare4, lastEditComment, modId)
public static void UpdateSpecific(
int sessionId,
int grpId,
string grpDesc,
Nullable<int> maxValue,
Nullable<int> triggerType,
DBString triggerDetail,
Nullable<bool> obsolete,
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.
- grpId
- Required. Holds the ID of the data log group.
- grpDesc
- Optional. Holds the description of the data log group.
- maxValue
- Optional. Beginning with MES 7.0, this parameter is not used by the system. It defaults to 64.
- triggerType
- Optional. Holds an enumeration that specifies what triggers data collection. Currently, only the manual trigger type (0) is supported by the system.
- triggerDetail
- Optional. Holds an XML-encoded string that includes the detail for the trigger, which depends on the trigger type. Because this parameter does not apply to the manual trigger type, it is not currently used by the system. Set it to null.
- obsolete
- Optional. Holds a flag that, if set to true, specifies that this data log group is obsolete.
- 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 the comment that describes why this record is being updated.
- modId
Required. Holds the modification ID for the record to be updated, for optimistic concurrency control. The passed value must match the modification ID in the record for the update to succeed.
Output. Holds the returned modification ID to identify the update instance of the 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.