AddOrUpdateChoices(Int32,String,String,Int32,Nullable<Boolean>,Int32,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The AddOrUpdateChoices() method adds or updates operation step choice records in the Oper_Step_Choice table.
This overthrow of the method adds or updates only one operation step choice record.
'Declaration
Public Overloads Shared Sub AddOrUpdateChoices( _
ByVal sessionId As Integer, _
ByVal processId As String, _
ByVal operId As String, _
ByVal stepNo As Integer, _
ByVal deleteAll As Nullable(Of Boolean), _
ByVal choiceNo As Integer, _
ByVal choiceLabel As String _
)
'Usage
Dim sessionId As Integer
Dim processId As String
Dim operId As String
Dim stepNo As Integer
Dim deleteAll As Nullable(Of Boolean)
Dim choiceNo As Integer
Dim choiceLabel As String
OperStepChoice.AddOrUpdateChoices(sessionId, processId, operId, stepNo, deleteAll, choiceNo, choiceLabel)
public static void AddOrUpdateChoices(
int sessionId,
string processId,
string operId,
int stepNo,
Nullable<bool> deleteAll,
int choiceNo,
string choiceLabel
)
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 to which the operation belongs.
- operId
- Required. Holds the ID of the operation to which the step belongs.
- stepNo
- Required. Holds the operation step number.
- deleteAll
- Optional. This clears the specified choice records from the table before adding the new choice records.
- choiceNo
- Required. Holds the choice number.
- choiceLabel
- Optional. Holds the choice label, which indicates the step choice type. Refer to the Remarks for more information.
This method adds or updates the row in the Oper_Step_Choice table based on the supplied input parameter. If a choiceLabel is not supplied, the row identified by the choiceNo will be removed from the Oper_Step_Choice table. If the choiceLabel is supplied and a row identified by the stepNo exists in the Oper_Step_Choice table, the row is updated with the choiceLabel. If the choiceLabel is supplied and a row identified by the stepNo does not exist in the Oper_Step_Choice table, a new row for the choiceNo and choiceLabel is created.