UpdateStepData(Int32,String,String,String,Int32,String,String,String,Nullable<Int32>) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The UpdateStepData() method enters or updates data for a step/lot combination for the running job on the specified entity.
This overload of the method uses the entity name and site name to specify the entity.
'Declaration
Public Overloads Shared Sub UpdateStepData( _
ByVal sessionId As Integer, _
ByVal userId As String, _
ByVal entName As String, _
ByVal siteName As String, _
ByVal stepNo As Integer, _
ByVal lotNo As String, _
ByVal data As String, _
ByVal subLotNo As String, _
ByVal jobPos As Nullable(Of Integer) _
)
'Usage
Dim sessionId As Integer
Dim userId As String
Dim entName As String
Dim siteName As String
Dim stepNo As Integer
Dim lotNo As String
Dim data As String
Dim subLotNo As String
Dim jobPos As Nullable(Of Integer)
JobExec.UpdateStepData(sessionId, userId, entName, siteName, stepNo, lotNo, data, subLotNo, jobPos)
public static void UpdateStepData(
int sessionId,
string userId,
string entName,
string siteName,
int stepNo,
string lotNo,
string data,
string subLotNo,
Nullable<int> jobPos
)
Parameters
- sessionId
- Required. Holds the ID of the session from which the call is being made.
- userId
- Required. Holds the ID of the user who is entering the data.
- entName
- Required. Holds the name of the entity on which the step is being performed. This will identify the job that contains the step.
- siteName
- Optional. Holds the site name of the entity.
- stepNo
- Required. Holds the job step number.
- lotNo
- Required. Holds the lot number on which this step is being performed.
- data
- Required. Holds the data to be saved for this step/lot.
- subLotNo
- Optional. Holds the sublot number on which this step is being performed.
- jobPos
- Optional. Holds the job position. If greater than 1, jobs are running on this entity.
This method first reads job data (cur_wo_id, cur_oper_id, cur_seq_no, cur_step_no, and def_lot_no) for the current job running on the supplied entity and job position from the Job_Exec table and checks whether the current job is running.
For the method to succeed, the following must be true:
- The job is running.
- If the user ID is the same as the data_user_id column of the Job_Step_Data table, the user has job step update permission to update the step_data, step_data_time, and data_user_id columns of that table.