Show / Hide Table of Contents

Class EntityCustomFieldsHelper

Forward extra fields to extra fields helper, udef to udef helper (if any), if the underlying helpers do not have any changes at the start of modifications.

Inheritance
Object
EntityCustomFieldsHelper
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public class EntityCustomFieldsHelper

Constructors

EntityCustomFieldsHelper(TableRowBase, EntityExtraFieldsHelper, EntityUdefHelper)

Declaration
public EntityCustomFieldsHelper(TableRowBase row, EntityExtraFieldsHelper extraHelper, EntityUdefHelper udefHelper = null)
Parameters
Type Name Description
TableRowBase row
EntityExtraFieldsHelper extraHelper
EntityUdefHelper udefHelper

Fields

_extraHelper

Declaration
protected EntityExtraFieldsHelper _extraHelper
Field Value
Type Description
EntityExtraFieldsHelper

_row

Declaration
protected TableRowBase _row
Field Value
Type Description
TableRowBase

_udefHelper

Declaration
protected EntityUdefHelper _udefHelper
Field Value
Type Description
EntityUdefHelper

Properties

Item[String]

Declaration
public object this[string fieldName] { get; set; }
Parameters
Type Name Description
String fieldName
Property Value
Type Description
Object

Names

List of extra + udef field names and progids: ['x_foo', 'Superoffice:1']

Declaration
public string[] Names { get; }
Property Value
Type Description
String[]

Methods

Encode(String)

Convert field value to a string encoded value: 123 -> "[I:123]"

Declaration
public string Encode(string fieldName)
Parameters
Type Name Description
String fieldName
Returns
Type Description
String

GetExtraInfo(String)

Declaration
public (string, string) GetExtraInfo(string fieldname)
Parameters
Type Name Description
String fieldname
Returns
Type Description
ValueTuple<String, String>

Parse(StringDictionary, String)

Update field value. Convert string encoded value back into object. Check for xxx:org value, and update only if xxx:org is different, or missing.

Declaration
public void Parse(StringDictionary values, string fieldName)
Parameters
Type Name Description
StringDictionary values
String fieldName

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top