Can be used to mirror the layout of the user-defined fields in the user interface.
Constructors
NSUserDefinedFieldInfo()
Initializes a new instance of the NSUserDefinedFieldInfo class.
Methods
GetColumnId()
Returns: CRMScript.Global.Integer - The ID of the database column this field corresponds to.
Example:
GetFieldDefault()
Returns: CRMScript.Global.String - Optional default value for String fields.
Example:
GetFieldHeight()
Returns: CRMScript.Global.Integer - field height in pixels, 0 = ‘enough’ (from font).
Example:
GetFieldLabel()
Returns: CRMScript.Global.String - The label (lead text).
Example:
GetFieldLeft()
Returns: CRMScript.Global.Integer - X pixel coordinate of field.
Example:
GetFieldTop()
Returns: CRMScript.Global.Integer - Y pixel coordinate of field.
Example:
GetFieldType()
Returns: CRMScript.Global.Integer - See <xref href=“CRMScript.NetServer.UDefFieldType” data-throw-if-not-resolved=“false”></xref>
Example:
GetFieldWidth()
Returns: CRMScript.Global.Integer - field width in pixels, 0 = ‘enough’ (from font).
Example:
Returns: CRMScript.Global.String - Formatting mask, can be whatever the controls understand (currently nothing).
Example:
GetHasBeenPublished()
Returns: CRMScript.Global.Bool - Has the udef field been published?
Example:
GetHideLabel()
Returns: CRMScript.Global.Bool - Hide the label if 1
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:
GetJustification()
Returns: CRMScript.Global.Integer - Justification. See <xref href=“CRMScript.NetServer.UdefJustification” data-throw-if-not-resolved=“false”></xref>
Example:
GetLabelHeight()
Returns: CRMScript.Global.Integer - label height in pixels, 0 = ‘enough’ (from font).
Example:
GetLabelLeft()
Returns: CRMScript.Global.Integer - X pixel coordinate of label.
Example:
GetLabelTop()
Returns: CRMScript.Global.Integer - Y pixel coordinate of label.
Example:
GetLabelWidth()
Returns: CRMScript.Global.Integer - label width in pixels, 0 = ‘enough’ (from font).
Example:
GetLastVersionId()
Returns: CRMScript.Global.Integer - UDefFieldId this field had in the previous version, 0 = field is new in this version.
Example:
GetListTableId()
Returns: CRMScript.Global.Integer - The table ID of the source table for lists kTableAssoc, kTableContInt or whatever.
Example:
GetMdoListName()
Returns: CRMScript.Global.String - MDO list name used to populate this list. Derived from UDListDefinitionId and ListTableId. (Read-only).
Example:
GetOwnerTableId()
Returns: CRMScript.Global.Integer - ID of owning table (contact, person, project).
GetPage1LineNo()
Returns: CRMScript.Global.Integer - Line no on View Page 1, used if MDO flags are OFF. 0 = this field is not visible on page 1
Example:
GetProgId()
Returns: CRMScript.Global.String - Programmatic ID, for use by software that needs to find a particular field. Carried over like udefIdentity across generations.
Use a Company.Product.Field format to avoid naming conflicts; the Company name SuperOffice is reserved.
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:
GetTabOrder()
Returns: CRMScript.Global.Integer - Tab order value, sets the field processing sequence.
Example:
GetTemplateVariableName()
Returns: CRMScript.Global.String - Template variable name.
Example:
GetTextLength()
Returns: CRMScript.Global.Integer - Length (in characters) of a text field, 0 for other types.
Example:
Returns: CRMScript.Global.String - Optional tooltip text for this field.
Example:
GetType()
Returns: CRMScript.Global.Integer - ID of owning table (contact, person, project). See <xref href=“CRMScript.NetServer.UDefType” data-throw-if-not-resolved=“false”></xref>.
This is not the actual tableNumber, rather it’s an enum.
Example:
GetUDefFieldId()
Returns: CRMScript.Global.Integer - Primary key.
Example:
GetUdefIdentity()
Returns: CRMScript.Global.Integer - Unique number used to track field identity across layout changes.
Example:
GetUDListDefinitionId()
Returns: CRMScript.Global.Integer - List to use for populating dropdown or listbox.
Example:
GetVersion()
Returns: CRMScript.Global.Integer - Definition version number; ALL fields get new version whenever layout is updated.
Example:
SetColumnId(Integer)
Returns: CRMScript.Global.Void
Example:
SetFieldDefault(String)
Returns: CRMScript.Global.Void
Example:
SetFieldHeight(Integer)
Returns: CRMScript.Global.Void
Example:
SetFieldLabel(String)
Returns: CRMScript.Global.Void
Example:
SetFieldLeft(Integer)
Returns: CRMScript.Global.Void
Example:
SetFieldTop(Integer)
Returns: CRMScript.Global.Void
Example:
SetFieldType(Integer)
Returns: CRMScript.Global.Void
Example:
SetFieldWidth(Integer)
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
SetHasBeenPublished(Bool)
Returns: CRMScript.Global.Void
Example:
SetHideLabel(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:
SetJustification(Integer)
Returns: CRMScript.Global.Void
Example:
SetLabelHeight(Integer)
Returns: CRMScript.Global.Void
Example:
SetLabelLeft(Integer)
Returns: CRMScript.Global.Void
Example:
SetLabelTop(Integer)
Returns: CRMScript.Global.Void
Example:
SetLabelWidth(Integer)
Returns: CRMScript.Global.Void
Example:
SetLastVersionId(Integer)
Returns: CRMScript.Global.Void
Example:
SetListTableId(Integer)
Returns: CRMScript.Global.Void
Example:
SetMdoListName(String)
Returns: CRMScript.Global.Void
Example:
SetOwnerTableId(Integer)
Returns: CRMScript.Global.Void
SetPage1LineNo(Integer)
Returns: CRMScript.Global.Void
Example:
SetProgId(String)
Returns: CRMScript.Global.Void
Use a Company.Product.Field format to avoid naming conflicts; the Company name SuperOffice is reserved.
Example:
SetShortLabel(String)
Returns: CRMScript.Global.Void
Example:
SetTabOrder(Integer)
Returns: CRMScript.Global.Void
Example:
SetTemplateVariableName(String)
Returns: CRMScript.Global.Void
Example:
SetTextLength(Integer)
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
SetType(Integer)
Returns: CRMScript.Global.Void
This is not the actual tableNumber, rather it’s an enum.
Example:
SetUDefFieldId(Integer)
Returns: CRMScript.Global.Void
Example:
SetUdefIdentity(Integer)
Returns: CRMScript.Global.Void
Example:
SetUDListDefinitionId(Integer)
Returns: CRMScript.Global.Void
Example:
SetVersion(Integer)
Returns: CRMScript.Global.Void
Example: