Click or drag to resize

DataObjectGetPropertyValueByOdwMapping Method (String, String)

Returns the string value of a property by odw mapping. If the property is a Value property it must be of data type 'Text' or 'MultiLangText'. If the property is a Set property the Name of the (first) selected value is returned. If the property is a Reference property the DisplayName of the (first) selected value is returned. Throws an exception if: - The property doesn't exist - The property is not present in the data object type - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public virtual string GetPropertyValueByOdwMapping(
	string odwMappingName,
	string defaultValue
)

Parameters

odwMappingName
Type: SystemString
Name of odw mapping
defaultValue
Type: SystemString
defaultValue is returned if the dataobject doesn't have a value for the property.

Return Value

Type: String
See Also