UpdateStepData(Int32,String,Int32,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 ID to specify the entity.
public static void UpdateStepData(
int sessionId,
string userId,
int entId,
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.
- entId
- Required. Holds the ID of the entity on which the step is being performed. This will identify the job that contains the step.
- 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.