AddStepData Method
- Last UpdatedNov 06, 2025
- 2 minute read
The AddStepData() method adds a new record to the Job_Step_Data table for the specified step. A step is identified by a work order ID, an operation ID, an operation sequence number, and a step number.
'Declaration
Public Sub AddStepData( _
ByVal stepNo As Integer, _
ByVal lotNo As String, _
ByVal lastEditAt As String, _
ByVal stateCd As StepStateType, _
ByVal actStartTime As Object, _
ByVal actFinishTime As Object, _
ByVal stepData As Object, _
ByVal stepDataTime As Object, _
ByVal startUserID As Object, _
ByVal finishUserID As Object, _
ByVal dataUserID As Object, _
ByVal formDone As Object, _
ByVal spare1 As Object, _
ByVal spare2 As Object, _
ByVal spare3 As Object, _
ByVal spare4 As Object, _
ByVal spare5 As Object, _
ByVal spare6 As Object _
)
public void AddStepData(
int stepNo,
string lotNo,
string lastEditAt,
StepStateType stateCd,
object actStartTime,
object actFinishTime,
object stepData,
object stepDataTime,
object startUserID,
object finishUserID,
object dataUserID,
object formDone,
object spare1,
object spare2,
object spare3,
object spare4,
object spare5,
object spare6
)
Parameters
- stepNo
- Required. Holds the number of the step for which data is to be added.
- lotNo
- Required. Holds the lot number on which the step was performed.
- lastEditAt
- Optional. Holds a DateTime value to avoid data contention. If it is specified, the passed value must match the lastEditAt value in the database for the update to succeed.
- stateCd
- Optional. Holds the state of the step. Set to null to not add this parameter.
- actStartTime
- Optional. Holds the start time for the step. Set to null to not add this parameter.
- actFinishTime
- Optional. Holds the finish time for the step. Set to null to not add this parameter.
- stepData
- Optional. Holds the data for the step. Set to null to not add this parameter.
- stepDataTime
- Optional. Holds the time the step data was taken. Set to null to not add this parameter.
- startUserID
- Optional. Holds the ID of the user who started the step. Set to null to not add this parameter.
- finishUserID
- Optional. Holds the ID of the user who finished the step. Set to null to not add this parameter.
- dataUserID
- Optional. Holds the ID of the user who reordered the data. Set to null to not add this parameter.
- formDone
- Optional. Holds a flag that, if set to true, indicates that the step form is done. Set to null to not add this parameter.
- spare1
- Optional. Holds the spare1 value. Set to null to not add this parameter.
- spare2
- Optional. Holds the spare2 value. Set to null to not add this parameter.
- spare3
- Optional. Holds the spare3 value. Set to null to not add this parameter.
- spare4
- Optional. Holds the spare4 value. Set to null to not add this parameter.
- spare5
- Optional. Holds the spare5 value. Set to null to not add this parameter.
- spare6
- Optional. Holds the spare6 value. Set to null to not add this parameter.