Class NSFieldInfoBase
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.
Declaration
NSFieldInfoBase Methods
GetDescription()
Declaration
String GetDescription() Examples
NSFieldInfoBase thing;
String description = thing.GetDescription();
Returns
| Type | Description |
| String | Optional tooltip text for this field. |
GetDisplayName()
Declaration
String GetDisplayName() Examples
NSFieldInfoBase thing;
String displayName = thing.GetDisplayName();
Returns
| Type | Description |
| String | Label for field. May be multi-lang string encoded. |
GetFieldName()
Declaration
String GetFieldName() Examples
NSFieldInfoBase thing;
String fieldName = thing.GetFieldName();
Returns
| Type | Description |
| String | Database name or prog-id 'x_foobar' or 'SuperOffice:2'. |
GetFieldType()
Declaration
Integer GetFieldType() Examples
NSFieldInfoBase thing;
Integer fieldType = thing.GetFieldType();
Returns
| Type | Description |
| Integer | What sort of data does this field contain. See <xref href="CRMScript.NetServer.FieldMetadataType" data-throw-if-not-resolved="false"></xref>. |
GetHideField()
Declaration
Bool GetHideField() Examples
NSFieldInfoBase thing;
Bool hideField = thing.GetHideField();
Returns
| Type | Description |
| Bool | Hide the field from the UI. Only allow API access. |
GetHideLabel()
Declaration
Bool GetHideLabel() Examples
NSFieldInfoBase thing;
Bool hideLabel = thing.GetHideLabel();
Returns
| Type | Description |
| Bool | Hide the label if 1 |
GetIsExternal()
Declaration
Bool GetIsExternal() Examples
NSFieldInfoBase thing;
Bool isExternal = thing.GetIsExternal();
Returns
| Type | Description |
| Bool | Should this field be shown to external users via customer center? |
GetIsIndexed()
Declaration
Bool GetIsIndexed() Examples
NSFieldInfoBase thing;
Bool isIndexed = thing.GetIsIndexed();
Returns
| Type | Description |
| Bool | Is this field indexed? true if yes; false if no. |
GetIsMandatory()
Declaration
Bool GetIsMandatory() Examples
NSFieldInfoBase thing;
Bool isMandatory = thing.GetIsMandatory();
Returns
| Type | Description |
| Bool | 0 = no, 1 = yes (field must be filled out). |
GetIsReadOnly()
Declaration
Bool GetIsReadOnly() Examples
NSFieldInfoBase thing;
Bool isReadOnly = thing.GetIsReadOnly();
Returns
| Type | Description |
| Bool | 0 = read/write, 1 = readonly (don't combine with mandatory). |
GetRank()
Declaration
Integer GetRank() Examples
NSFieldInfoBase thing;
Integer rank = thing.GetRank();
Returns
| Type | Description |
| Integer | Tab order, ranking within the custom fields. |
GetShortLabel()
Declaration
String GetShortLabel() Examples
NSFieldInfoBase thing;
String shortLabel = thing.GetShortLabel();
Returns
| Type | Description |
| String | Short name to be used in Archive headings and on page 1. If blank, the fieldLabel will be used everywhere. |
GetTemplateVariableName()
Declaration
String GetTemplateVariableName() Examples
NSFieldInfoBase thing;
String templateVariableName = thing.GetTemplateVariableName();
Returns
| Type | Description |
| String | Template variable name 'cs01', 'cl02' etc. Null for extra fields. |
SetDescription(String)
Declaration
Void SetDescription(String description) Examples
NSFieldInfoBase thing;
String description;
thing.SetDescription(description);
Parameters
| Type | Name | Description |
| String | description | Optional tooltip text for this field. |
Returns
| Type | Description |
| Void |
SetDisplayName(String)
Declaration
Void SetDisplayName(String displayName) Examples
NSFieldInfoBase thing;
String displayName;
thing.SetDisplayName(displayName);
Parameters
| Type | Name | Description |
| String | displayName | Label for field. May be multi-lang string encoded. |
Returns
| Type | Description |
| Void |
SetFieldName(String)
Declaration
Void SetFieldName(String fieldName) Examples
NSFieldInfoBase thing;
String fieldName;
thing.SetFieldName(fieldName);
Parameters
| Type | Name | Description |
| String | fieldName | Database name or prog-id 'x_foobar' or 'SuperOffice:2'. |
Returns
| Type | Description |
| Void |
SetFieldType(Integer)
Declaration
Void SetFieldType(Integer fieldType) Examples
NSFieldInfoBase thing;
Integer fieldType;
thing.SetFieldType(fieldType);
Parameters
| Type | Name | Description |
| Integer | fieldType | What sort of data does this field contain. See <xref href="CRMScript.NetServer.FieldMetadataType" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetHideField(Bool)
Declaration
Void SetHideField(Bool hideField) Examples
NSFieldInfoBase thing;
Bool hideField;
thing.SetHideField(hideField);
Parameters
| Type | Name | Description |
| Bool | hideField | Hide the field from the UI. Only allow API access. |
Returns
| Type | Description |
| Void |
SetHideLabel(Bool)
Declaration
Void SetHideLabel(Bool hideLabel) Examples
NSFieldInfoBase thing;
Bool hideLabel;
thing.SetHideLabel(hideLabel);
Parameters
| Type | Name | Description |
| Bool | hideLabel | Hide the label if 1 |
Returns
| Type | Description |
| Void |
SetIsExternal(Bool)
Declaration
Void SetIsExternal(Bool isExternal) Examples
NSFieldInfoBase thing;
Bool isExternal;
thing.SetIsExternal(isExternal);
Parameters
| Type | Name | Description |
| Bool | isExternal | Should this field be shown to external users via customer center? |
Returns
| Type | Description |
| Void |
SetIsIndexed(Bool)
Declaration
Void SetIsIndexed(Bool isIndexed) Examples
NSFieldInfoBase thing;
Bool isIndexed;
thing.SetIsIndexed(isIndexed);
Parameters
| Type | Name | Description |
| Bool | isIndexed | Is this field indexed? true if yes; false if no. |
Returns
| Type | Description |
| Void |
SetIsMandatory(Bool)
Declaration
Void SetIsMandatory(Bool isMandatory) Examples
NSFieldInfoBase thing;
Bool isMandatory;
thing.SetIsMandatory(isMandatory);
Parameters
| Type | Name | Description |
| Bool | isMandatory | 0 = no, 1 = yes (field must be filled out). |
Returns
| Type | Description |
| Void |
SetIsReadOnly(Bool)
Declaration
Void SetIsReadOnly(Bool isReadOnly) Examples
NSFieldInfoBase thing;
Bool isReadOnly;
thing.SetIsReadOnly(isReadOnly);
Parameters
| Type | Name | Description |
| Bool | isReadOnly | 0 = read/write, 1 = readonly (don't combine with mandatory). |
Returns
| Type | Description |
| Void |
SetRank(Integer)
Declaration
Void SetRank(Integer rank) Examples
NSFieldInfoBase thing;
Integer rank;
thing.SetRank(rank);
Parameters
| Type | Name | Description |
| Integer | rank | Tab order, ranking within the custom fields. |
Returns
| Type | Description |
| Void |
SetShortLabel(String)
Declaration
Void SetShortLabel(String shortLabel) Examples
NSFieldInfoBase thing;
String shortLabel;
thing.SetShortLabel(shortLabel);
Parameters
| Type | Name | Description |
| String | shortLabel | Short name to be used in Archive headings and on page 1. If blank, the fieldLabel will be used everywhere. |
Returns
| Type | Description |
| Void |
SetTemplateVariableName(String)
Declaration
Void SetTemplateVariableName(String templateVariableName) Examples
NSFieldInfoBase thing;
String templateVariableName;
thing.SetTemplateVariableName(templateVariableName);
Parameters
| Type | Name | Description |
| String | templateVariableName | Template variable name 'cs01', 'cl02' etc. Null for extra fields. |
Returns
| Type | Description |
| Void |