| MainCreateDataObjectFromTemplate2 Method |
Method creates a new data object of the specified type.
The properties of the specified template object will be copied from the data object with id templateObjectId,
based on the settings of the specified copy rule. If the templateDataObjectId = 0, the template data object will
be the target object.
The update events triggered on the new data object type are executed on the created data object.
Codemethod usage | |
---|
Designed to be used in a process only (Yes/No) | No |
Action Object (data object type) | DataObjectType |
Namespace:
Omada.OE.UtilityCodeAssembly
Assembly:
Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntaxpublic void CreateDataObjectFromTemplate2(
CodeMethodInvokeContext context,
string newDataObjectTypeUIdStr,
string templateDataObjectUIdStr,
string copyRuleUIdStr,
bool skipEvents,
bool overrideSecurity,
out int createdDataObjectId
)
Parameters
- context
- Type: Omada.OE.ModelCodeMethodInvokeContext
An invoke context object.
- newDataObjectTypeUIdStr
- Type: SystemString
UId of the data object type that the new data object uses
- templateDataObjectUIdStr
- Type: SystemString
UId of the data object template used to create the new data object
- copyRuleUIdStr
- Type: SystemString
UId of the copy rule to be used to copy data between the new data object and the template data object
- skipEvents
- Type: SystemBoolean
Skip create events while creating the object. The update events are executed on the created data object.
- overrideSecurity
- Type: SystemBoolean
Override security while creating the object
- createdDataObjectId
- Type: SystemInt32
returns the id to the newly created data object
Return Value
Type:
See Also