DataObjectVersion Methods |
The DataObjectVersion type exposes the following members.
Name | Description | |
---|---|---|
![]() | Clone |
The Clone metode is mainly used by DataObject.Clone
|
![]() | GetId |
Returns the ID
|
![]() | GetPropertyValue(Int32) |
Returns the value of property on the DataObjectVersion object.
The value can be one of the following:
string, int, datetime, double, bool, SetPropertyValue object or ReferencePropertyValue object.
It can also by null, for a number of reasons:
* The property was not found (it is not on the type)
* The value is not loaded (ValueAvailable=false)
* There is no value for the propery
(if for instance the property has been added to the type at a later point)
* The user does not have access to the property.
|
![]() | GetPropertyValue(Int32, DateTime) |
Returns the DataTime property value based on the provided property ID from the latest dataobject version.
If the value is null/undefined, the defaultValue is returned.
|
![]() | GetPropertyValue(Int32, String) |
Returns the string representation of a property value on the DataObjectVersion object.
|
![]() | GetReferencePropertyValueId |
Returns the value of a specific reference property.
If more than one value are present the first is returned.
If no value are present then 'default' is returned.
|
![]() | GetReferencePropertyValueIds |
Returns a list of DataObjectIDs referenced to by the provided reference property.
|
![]() | GetReferencePropertyValues |
Returns the values of the provided ReferenceProperty ID on the DataObjectVersion object.
The collection can be empty, which can be caused by:
* The property'en was not found (it is not on the type)
* The values has not been read (ValueAvailable=false)
* There are no values for propert
* The active user does not have access to the property
|
![]() | GetSinglePropertyValueT(Int32, T) |
Returns a single value for a property (fixed fields are not supported by this method).
|
![]() | GetSinglePropertyValueT(String, T) |
Returns a single value for a property or a fixed field.
Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details.
|
![]() | HasNonEmptyPropertyWithLog |
Returns true of the version contains at least one property with log on which a value is provided.
|
![]() | IsEqualTo(DataObjectVersion, Boolean) |
Compares to dataobjectversions.
Comparison is made on each of the property values.
Returns true if the two object versions contains similar property values.
|
![]() | IsEqualTo(DataObjectVersion, IntegerList, Boolean) |
Compares to dataobjectversions.
Coparison is made on each of the property values.
Returns true if the two object versions contains similar property values.
Comparison is only made on the provided property ID's.
If comparePropertyIds is empty all properties are compared.
|
![]() | IsPropertyChanged(DataObjectVersion, Int32) |
Compares values for a property between to data object versions.
Returns true if the versions contain different values.
|
![]() ![]() | IsPropertyChanged(DataObjectVersion, DataObjectVersion, Int32) |
Compares values for a property between to data object versions.
Returns true if the versions contain different values.
|
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |