| MainAssignRefPropertyFromValueProperty Method |
CM uses values or list of values (comma or semicolon separated) and searches for data objects.
If searchPropSysName is provided, it looks for data objects where action object valuePropSysName = searchPropSysName.
Otherwise, CM checks if values are correct UIds.
If yes, it does search using object UIds. Otherwise search is done by display names.
If the target property is MultiValue, it adds new objects or replaces them, using value in clearExisting parameter.
Namespace:
Omada.OE.UtilityCodeAssembly
Assembly:
Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntaxpublic void AssignRefPropertyFromValueProperty(
CodeMethodInvokeContext context,
string valuePropSysName,
string refPropSysName,
string searchPropSysName,
string dataObjectTypeUid,
bool clearExisting
)
Parameters
- context
- Type: Omada.OE.ModelCodeMethodInvokeContext
The CM context. - valuePropSysName
- Type: SystemString
The source text value property containing UId(s) or display name(s) of the data object(s). - refPropSysName
- Type: SystemString
The target reference property. Both SV and MV are supported. - searchPropSysName
- Type: SystemString
The property used for search (optional). - dataObjectTypeUid
- Type: SystemString
The data objects type UId (optional). - clearExisting
- Type: SystemBoolean
If target property is MV, defines whether values should be replaced or added to existing.
See Also