Click or drag to resize

MainCopyPropertyValuesFromReferredObject2 Method

Copies property values from DataObject referred in reference property to the properties in the ActionObject. From and To properties are copied based on the order of the properties in srcPropertySysNames and destPropertySysNames. Eg. srcPropertySysNames = 'Property1,Property2' destPropertySysNames = 'Property2,Property1' Will copy From referenceObject.Property1 To ActionObject.Property2 From referenceObject.Property2 To ActionObject.Property1
Codemethod usage
Designed to be used in a process only (Yes/No)No
Action Object (data object type)ActionObject

Namespace:  Omada.OE.UtilityCodeAssembly
Assembly:  Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntax
C#
public bool CopyPropertyValuesFromReferredObject2(
	CodeMethodInvokeContext context,
	string referencePropertySysName,
	string srcPropertySysNames,
	string destPropertySysNames,
	bool clearExistingValues,
	bool overwriteExistingValues
)

Parameters

context
Type: Omada.OE.ModelCodeMethodInvokeContext
An invoke context object.
referencePropertySysName
Type: SystemString
ID for property referencing the copy from object on the action object.
srcPropertySysNames
Type: SystemString
Comma separated list of properties to copy from on the referred object.
destPropertySysNames
Type: SystemString
Comma separated list of properties to copy to on the Action Object.
clearExistingValues
Type: SystemBoolean
If set all values are removed before adding the new values. (Specific to reference properties)
overwriteExistingValues
Type: SystemBoolean
Is only used if clear = false. If clear is not set duplicates have to be handled. This setting controls whether existing values are overwritten or survives. This can be relevant for values with attributes. (Specific to reference properties)

Return Value

Type: Boolean
See Also