Show / Hide Table of Contents

Class FieldMetadataInfo

This carrier describes a custom field to be added to the config dialog at runtime. It is used to populate the Admin configuration dialog for a connection. Note that this is just a description of the field - it is not the field itself. The GUI will use this info to build the user interface controls. The call to the ERP Connector’s GetConfigurationFields method returns a list of fields and field types. The Admin client builds a dialog with these fields.

Inheritance
Object
FieldMetadataInfo
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM
Assembly: SuperOffice.Plugins.dll
Syntax
public class FieldMetadataInfo

Constructors

FieldMetadataInfo()

Declaration
public FieldMetadataInfo()

Properties

Access

Access restrictions on the field

Declaration
public FieldAccessInfo Access { get; set; }
Property Value
Type Description
FieldAccessInfo

DefaultValue

A default value for the field. The value in the widget when the configure dialog is opened in Add Connection mode. This will vary a bit depending on the type, of course. Obviously, if the field is a label, text or password, then the text is used. If the field is an int or double, we shall try to convert the string into a number. (If the conversion fails, we shall use zero or 0.00 as the default value.) If the field is a list, we shall try to find a list item where the fields default value matches the listsitem’s ERPQuoteListItemKey.

Declaration
public string DefaultValue { get; set; }
Property Value
Type Description
String

DisplayDescription

Tooltip for the field name.

Declaration
public string DisplayDescription { get; set; }
Property Value
Type Description
String

DisplayName

Localized field name – shown in the GUI as the label for the control.

Declaration
public string DisplayName { get; set; }
Property Value
Type Description
String

FieldKey

Internal name of the field. Used as the key in the ConnectionConfigFieldInfo values when TestConnection is called.

Declaration
public string FieldKey { get; set; }
Property Value
Type Description
String

FieldType

Kind of field widget to use: textbox, number field, password field, dropdown list or checkbox?

Declaration
public FieldMetadataTypeInfo FieldType { get; set; }
Property Value
Type Description
FieldMetadataTypeInfo

ListName

Used for getting the list items from the list provider. The source of the items must ultimately be exposed via GetQuoteList(String) or GetList(Guid, String), through various naming conventions and adapters. The actual Quote and ERP Connectors solve this in slightly different ways.

Declaration
public string ListName { get; set; }
Property Value
Type Description
String

MaxLength

Maximum length for strings, if set. 0 means no restriction (though sooner or later something will no doubt overflow if you pile on the gigabytes)

Declaration
public int MaxLength { get; set; }
Property Value
Type Description
Int32

Rank

A way to set the order of the fields. Lowest value will be displayed first/over the fields with other values.

Declaration
public int Rank { get; set; }
Property Value
Type Description
Int32

Methods

ToString()

Override: Useful ToString for debugging

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
ConnectorExtensions.GetRestrictionType(FieldMetadataInfo)
ConnectorExtensions.GetRestrictionListName(FieldMetadataInfo, String)
ConnectorExtensions.GetDisplayType(FieldMetadataInfo)
ConnectorExtensions.GetDefaultWidth(FieldMetadataInfo)
ConnectorExtensions.ToColumnInfo(FieldMetadataInfo, String)
Converters.MapEnums<From, To>(From)
Converters.FromPlugin(FieldMetadataInfo)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top