Clone Method (Oper)
- Last UpdatedNov 06, 2025
- 3 minute read
The Clone() method adds a new operation record to the Oper table by making a copy of an existing record.
'Declaration
Public Shared Sub Clone( _
ByVal sessionId As Integer, _
ByVal existingProcessId As String, _
ByVal existingOperId As String, _
ByVal newProcessId As String, _
ByVal newOperId As String, _
ByVal newOperDesc As String, _
ByRef modId As String _
)
public static void Clone(
int sessionId,
string existingProcessId,
string existingOperId,
string newProcessId,
string newOperId,
string newOperDesc,
out string modId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- existingProcessId
- Required. Holds the ID of the process to which the operation that is being cloned belongs.
- existingOperId
- Required. Holds the ID of the operation that is being cloned.
- newProcessId
- Required. Holds the process ID to which the operation that is being added belongs.
- newOperId
- Required. Holds the ID of the operation that is being added.
- newOperDesc
- Optional. Holds the description of the operation that is being added. Either enter a new value or leave the value from the cloned operation unchanged by passing a null.
- modId
- Output. Holds the modification ID assigned to this record when it is added, for optimistic concurrency control. The modId parameter is used by other methods that modify or delete this type of record for optimistic concurrency control.
The combination of the new process ID and new operation ID must not already exist in the database.
This method clones all the data from the existing operation specified by the supplied parameter to a new operation. Any existing data in the following tables will be cloned to the new operation: Bom_Item_Oper_Link, Data_Entry_Sched, Oper_Attr, Oper_Ent_Link, Oper_Step_Grp, Oper_Step, Data_Entry_Sched, Oper_Step_Choice, Oper_Step_File, Oper_Step_Ent_Exc, Oper_Spec_Ver, Res_Oper_Link, Cert_Oper_Link, Cert_Oper_Step_Link, Spc_Char_Oper_Link, Data_Log_Grp_Oper_Link And Data_Log_Grp_Oper_Step_Link.
The following records from the existing operation are copied to the new operation:
- oper_attr: All the operation attributes linked to existing operation will be copied to the new operation.
- oper_Ent_Link: All the operation entity links linked to existing operation will be copied to the new operation.
- oper_step_grp: All the operation step groups linked to existing operation will be copied to the new operation.
- oper_step: All the operation steps linked to existing operation will be copied to the new operation.
- data_entry_sched: All the data entry sched linked to existing operation will be copied to the new operation.
- oper_step_choice: All the operation step choice data linked to existing operation will be copied to the new operation.
- oper_step_file: All the operation step files linked to existing operation will be copied to the new operation.
- oper_step_ent_exc: All the operation step entity exclusions linked to existing operation will be copied to the new operation.
- oper_spec_ver: All the operation specification version linked to existing operation will be copied to the new operation
- cert_oper_link: All the operation certifications linked to existing operation will be copied to the new operation.
- cert_oper_step_link: All the operation step certifications linked to existing operation will be copied to the new operation.
- spc_char_oper_link: All the operation SPC characteristics linked to existing operation will be copied to the new operation.
- data_log_grp_oper_link: All the data log group/operation links linked to existing operation will be copied to the new operation.
- data_log_grp_oper_step_link: All the data log group/operation step links linked to existing operation will be copied to the new operation.