AddOrUpdateChoices(Int32,String,Int32,Nullable<Boolean>,Int32,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The AddOrUpdateChoices() method adds or updates standard operation step choice records in the Std_Oper_Step_Choice table.
This overthrow of the method adds or updates only one standard operation step choice record.
'Declaration
Public Overloads Shared Sub AddOrUpdateChoices( _
ByVal sessionId As Integer, _
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 operId As String
Dim stepNo As Integer
Dim deleteAll As Nullable(Of Boolean)
Dim choiceNo As Integer
Dim choiceLabel As String
StdOperStepChoice.AddOrUpdateChoices(sessionId, operId, stepNo, deleteAll, choiceNo, choiceLabel)
public static void AddOrUpdateChoices(
int sessionId,
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.
- operId
Required. Holds the ID of the operation to which the step belongs.
- stepNo
Required. Holds the number of the operation step.
- deleteAll
Optional. Holds a flag that, if set to true, specifies that any standard operation step choice records that match the supplied operId, stepNo, and choiceNo values be deleted from the Std_Oper_Step_Choice table. This clears the specified choice records from the table before adding the new choice records.
- choiceNo
Required. Holds the number of the operation choice.
- choiceLabel
Optional. Holds the label of the operation choice.