Click or drag to resize

FieldContainer Class

FieldContainer is a container for a field on a dataobject. The field is either a property or a fixed field. The class is among other things used as base class for fields in a view.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelFieldContainer
    More...

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

The FieldContainer type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyFixField
Anvendes kun hvis PropertyId == 0
Public propertyPropertyId
Id of the property which the field represents. Is zero if the field represents a fixed field.
Public propertyPropertySystemName
System name of the property which the field represents.
Top
Methods
  NameDescription
Public methodClone
Public methodContainsFixedField
Public methodContainsFixedField(FixedField)
Public methodContainsProperty
Public methodContainsProperty(Int32)
Public methodContainsReferencePathFixedField
Public methodContainsReferenceProperty
Public methodContainsValueProperty
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.
Public methodGetDeleted
Public methodGetDescription
Public methodGetFieldType
Public methodStatic memberGetFieldTypeFromKey
Public methodGetId
Returns the id of the field property if m_property != null, else return fixfield id
Public methodGetKey
Public methodGetName
Public methodGetName(Boolean)
Returns the name of the field
Public methodGetNegId
Returns the id of the field property if m_propertyId != 0, else return fixfield id negated.
Public methodGetProperty
Public methodGetPropertyType
Public methodGetValue(DataObjectVersion)
Returns the value for the field from the provided DataObjectVersion.
Public methodGetValue(DataObjectVersion, AppFormatInfo)
Returns the value for the field from the provided DataObjectVersion.
Public methodGetValue(DataObjectVersion, String)
Returns the value for the field from the provided DataObjectVersion.
Public methodStatic memberGetValue(Int32, DataObjectVersion, String)
Public methodGetValue(DataObjectVersion, AppFormatInfo, String)
Returns the value for the field from the provided DataObjectVersion.
Public methodGetValue(DataObjectVersion, String, Boolean)
Returns the value for the field from the provided DataObjectVersion.
Public methodGetValue(DataObjectVersion, AppFormatInfo, String, Boolean)
Returns the value for the field from the provided DataObjectVersion.
Public methodGetValueUrl(DataObject)
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.
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.
Public methodIsEqualTo
Method can determine whether two fields contains the same two fixed fields or the same two properties based on their ID's.
Public methodIsValueType
Public methodStatic memberParseKey
Public methodPassesFilter
Protected methodSetupPropertyFormatter
Public methodToString
(Overrides ObjectToString.)
Public methodStatic memberValidateFixedFieldName
Returns true if s matches with a fixed field name, else return false.
Top
Fields
  NameDescription
Public fieldAllowsMultipleValues
Is always false for a fixed field.
Public fieldFieldName
Name of property or fixed field (in the active user's language)
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.
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.
Public fieldPropertyType
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
Inheritance Hierarchy