Click or drag to resize

DataObjectControllerGetSinglePropertyValuePerDataObjectT Method

Returns a single value for a property or a fixed field on a list of data objects. Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details. The security model is respected. Throws an exception if the data object doesn't exist or security prevents access to it.

Namespace:  Omada.OE.AppLogic
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public virtual Dictionary<int, T> GetSinglePropertyValuePerDataObject<T>(
	IEnumerable<int> dataObjectIds,
	string property,
	T defaultValue
)
where T : Object, IEquatable<T>

Parameters

dataObjectIds
Type: System.Collections.GenericIEnumerableInt32
Ids of data objects from which the value should be returned.
property
Type: SystemString
System name of a property or name of a fixed field. Can also be a property id on the format: "ID:[property id]". Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details.
defaultValue
Type: T
If the property/field doesn't exist or the data object has no value for it then defaultValue is returned.

Type Parameters

T
The data type of the value depends on the property type and data type: Value property - Text: string Value property - Integer: int Value property - DateTime: DateTime Value property - Decimal: double Value property - Boolean: bool Value property - Hyperlink: string Value property - TimeSpan: TimeSpan Value property - MultiLangText: string Value property - Xml: string Set property: int Reference property: int Fixed fields: (other are supported besides these - please refer to the PropertyValuesContainer class for details) CreateTime: DateTime ChangeTime: DateTime CreatedBy: int Number: int Type: int Id: int DisplayName: string

Return Value

Type: DictionaryInt32, T
Returns a single value for the property or fixed field. If the property/field doesn't exist or the data object has no value for it then defaultValue is returned.
See Also