Skip to main content
Abstract basic information about database fields. May be custom or user-defined fields. The information can be used to build a user interface.

Constructors

NSFieldInfoBase()

Initializes a new instance of the NSFieldInfoBase class.

Methods

GetDescription()

Returns: CRMScript.Global.String - Optional tooltip text for this field. Example:

GetDisplayName()

Returns: CRMScript.Global.String - Label for field. May be multi-lang string encoded. Example:

GetFieldName()

Returns: CRMScript.Global.String - Database name or prog-id ‘x_foobar’ or ‘SuperOffice:2’. Example:

GetFieldType()

Returns: CRMScript.Global.Integer - What sort of data does this field contain. See <xref href=“CRMScript.NetServer.CustomFieldType” data-throw-if-not-resolved=“false”></xref>. Example:

GetHideField()

Returns: CRMScript.Global.Bool - Hide the field from the UI. Only allow API access. Example:

GetHideLabel()

Returns: CRMScript.Global.Bool - Hide the label if 1 Example:

GetIsExternal()

Returns: CRMScript.Global.Bool - Should this field be shown to external users via customer center? Example:

GetIsIndexed()

Returns: CRMScript.Global.Bool - Is this field indexed? true if yes; false if no. Example:

GetIsMandatory()

Returns: CRMScript.Global.Bool - 0 = no, 1 = yes (field must be filled out). Example:

GetIsReadOnly()

Returns: CRMScript.Global.Bool - 0 = read/write, 1 = readonly (don’t combine with mandatory). Example:

GetRank()

Returns: CRMScript.Global.Integer - Tab order, ranking within the custom fields. Example:

GetShortLabel()

Returns: CRMScript.Global.String - Short name to be used in Archive headings and on page 1. If blank, the fieldLabel will be used everywhere. Example:

GetTemplateVariableName()

Returns: CRMScript.Global.String - Template variable name ‘cs01’, ‘cl02’ etc. Null for extra fields. Example:

SetDescription(String)

Returns: CRMScript.Global.Void Example:

SetDisplayName(String)

Returns: CRMScript.Global.Void Example:

SetFieldName(String)

Returns: CRMScript.Global.Void Example:

SetFieldType(Integer)

Returns: CRMScript.Global.Void Example:

SetHideField(Bool)

Returns: CRMScript.Global.Void Example:

SetHideLabel(Bool)

Returns: CRMScript.Global.Void Example:

SetIsExternal(Bool)

Returns: CRMScript.Global.Void Example:

SetIsIndexed(Bool)

Returns: CRMScript.Global.Void Example:

SetIsMandatory(Bool)

Returns: CRMScript.Global.Void Example:

SetIsReadOnly(Bool)

Returns: CRMScript.Global.Void Example:

SetRank(Integer)

Returns: CRMScript.Global.Void Example:

SetShortLabel(String)

Returns: CRMScript.Global.Void Example:

SetTemplateVariableName(String)

Returns: CRMScript.Global.Void Example: