Class ExtraFieldHelper
Inherited Members
Namespace: SuperOffice.CRM.Data.Util
Assembly: SoDataBase.dll
Syntax
public class ExtraFieldHelper
Constructors
ExtraFieldHelper()
Declaration
public ExtraFieldHelper()
Methods
ConvertDbExtraFieldToString(object, FieldInfo, bool, int)
This method will take a Service extra field value and convert it using the CultureDataFormatter to apply the correct type information on the form [I:5]
Declaration
public static string ConvertDbExtraFieldToString(object value, FieldInfo fi, bool isNull, int rowId = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | The value to convert |
| FieldInfo | fi | The field metadata used in convertion |
| bool | isNull | Whether the stored value is null. |
| int | rowId | The record id, for existing rows. A Dynamic Link field's value is a CS redirect URL COMPUTED from the field definition + record id (the same URL produced by SuperOffice.CRM.Rows.ExtraFieldsHelper.FixValue(System.Object,SuperOffice.Data.Dictionary.SoField,System.Int32)); it does NOT depend on the stored value (often null/0), so it is generated whenever rowId > 0. Defaults to 0 for new/unsaved records (and all non-read callers), which skip the link. |
Returns
| Type | Description |
|---|---|
| string |
GetInitializedExtraFields<T>(T)
This method returns initialized extra fields with default values for given row
Declaration
public static StringDictionary GetInitializedExtraFields<T>(T row) where T : TableRowBase, IExtraFieldsHelper
Parameters
| Type | Name | Description |
|---|---|---|
| T | row | Row |
Returns
| Type | Description |
|---|---|
| StringDictionary |
Type Parameters
| Name | Description |
|---|---|
| T |