Click or drag to resize

DataExchangeField Class

Models a field on a DataExchangeObject. It maps to either a property or a fixed field
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelFieldContainer
    Omada.OE.ModelDataExchangeField

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class DataExchangeField : FieldContainer

The DataExchangeField type exposes the following members.

Constructors
  NameDescription
Public methodDataExchangeField(Int32)
Construct class with property ID
Public methodDataExchangeField(BaseProperty)
Construct class with property object
Public methodDataExchangeField(FieldContainer)
Construct class with FieldContainer
Public methodDataExchangeField(FixedField)
Construct class with fixed field
Top
Properties
  NameDescription
Public propertyFixField
Anvendes kun hvis PropertyId == 0
(Inherited from FieldContainer.)
Public propertyPropertyId
Id of the property which the field represents. Is zero if the field represents a fixed field.
(Inherited from FieldContainer.)
Public propertyPropertySystemName
System name of the property which the field represents.
(Inherited from FieldContainer.)
Public propertyValue
Based on the type and datatype of the field, value contains either a: string, int, datetime, double or a bool. Value can also be null. If field maps to a setproperty Value must be a string specifying the name of a setpropertyvalue. If field maps to a referenceproperty Value must be a string specifying the keyvalue of a referred dataobject. In case there is more than one value for the field Value will contain the first value.
Public propertyValues
Values can be used in case there is more than one value for a field. Each entry in Values is either a string, int, datetime, double or a bool. An entry will never be null!
Top
Methods
  NameDescription
Public methodClone (Inherited from FieldContainer.)
Public methodContainsFixedField
(Inherited from FieldContainer.)
Public methodContainsFixedField(FixedField)
(Inherited from FieldContainer.)
Public methodContainsProperty
(Inherited from FieldContainer.)
Public methodContainsProperty(Int32)
(Inherited from FieldContainer.)
Public methodContainsReferencePathFixedField
(Inherited from FieldContainer.)
Public methodContainsReferenceProperty
(Inherited from FieldContainer.)
Public methodContainsValueProperty
(Inherited from FieldContainer.)
Public methodContainsValuePropertyWithLog
Returns whether the field contains a property with log. If the property can't be located in the cache the method returns false.
(Inherited from FieldContainer.)
Public methodGetDeleted
(Inherited from FieldContainer.)
Public methodGetDescription
(Inherited from FieldContainer.)
Public methodGetFieldType
(Inherited from FieldContainer.)
Public methodGetId
Returns the id of the field property if m_property != null, else return fixfield id
(Inherited from FieldContainer.)
Public methodGetKey
(Inherited from FieldContainer.)
Public methodGetName
(Inherited from FieldContainer.)
Public methodGetName(Boolean)
Returns the name of the field
(Inherited from FieldContainer.)
Public methodGetNegId
Returns the id of the field property if m_propertyId != 0, else return fixfield id negated.
(Inherited from FieldContainer.)
Public methodGetProperty
(Inherited from FieldContainer.)
Public methodGetPropertyType
(Inherited from FieldContainer.)
Public methodGetValue(DataObjectVersion)
Returns the value for the field from the provided DataObjectVersion.
(Inherited from FieldContainer.)
Public methodGetValue(DataObjectVersion, AppFormatInfo)
Returns the value for the field from the provided DataObjectVersion.
(Inherited from FieldContainer.)
Public methodGetValue(DataObjectVersion, String)
Returns the value for the field from the provided DataObjectVersion.
(Inherited from FieldContainer.)
Public methodGetValue(DataObjectVersion, AppFormatInfo, String)
Returns the value for the field from the provided DataObjectVersion.
(Inherited from FieldContainer.)
Public methodGetValue(DataObjectVersion, String, Boolean)
Returns the value for the field from the provided DataObjectVersion.
(Inherited from FieldContainer.)
Public methodGetValue(DataObjectVersion, AppFormatInfo, String, Boolean)
Returns the value for the field from the provided DataObjectVersion.
(Inherited from FieldContainer.)
Public methodGetValueUrl(DataObject)
(Inherited from FieldContainer.)
Public methodGetValueUrl(DataObjectVersion)
Returns a URL as the value. It can be a URL if the field contains value property with the data type hyperlink.
(Inherited from FieldContainer.)
Public methodGetWidthFactor
Returns a number between 1 and 5. The number is used in views and indicates a relative width of the field. 1 = very narrow, 2 = narrow, 3 = normal, 4 = wide, 5 = very wide.
(Inherited from FieldContainer.)
Public methodIsEqualTo
Method can determine whether two fields contains the same two fixed fields or the same two properties based on their ID's.
(Inherited from FieldContainer.)
Public methodIsValueType
(Inherited from FieldContainer.)
Public methodPassesFilter
(Inherited from FieldContainer.)
Protected methodSetupPropertyFormatter
(Inherited from FieldContainer.)
Public methodToString
(Inherited from FieldContainer.)
Top
Fields
  NameDescription
Public fieldAllowsMultipleValues
Is always false for a fixed field.
(Inherited from FieldContainer.)
Public fieldFieldName
Name of property or fixed field (in the active user's language)
(Inherited from FieldContainer.)
Public fieldFieldNameShort
Short name of property or fixed field (in the active user's language). Note: for properties FieldName and FieldNameShort are always the same.
(Inherited from FieldContainer.)
Public fieldPropertyDataType
If the field contains a ValueProperty then PropertyDataType is the property's DataType. If the field contains a SetProperty or ReferenceProperty then PropertyDataType is Text. If the field contains a FixedField that can be mapped to a ValueProperty then the corresponding data type is returned. Else then Text is returned.
(Inherited from FieldContainer.)
Public fieldPropertyType
(Inherited from FieldContainer.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also