Skip to main content
Information about the definition and properties of an archive display column. It is used by the archive MDO providers to construct column lists for the configuration dialogs, and by the archive control to know what type (and other properties) each column has. The class is serializable and used on both the application and web server sides.

Constructors

NSArchiveColumnInfo()

Initializes a new instance of the NSArchiveColumnInfo class.

Methods

GetCanOrderBy()

Returns: CRMScript.Global.Bool - Can this column be used for sorting? Example:

GetCanRestrictBy()

Returns: CRMScript.Global.Bool - Can this column be used as a restriction? Example:

GetDisplayName()

Returns: CRMScript.Global.String - The column name to show, can be a resource identifier string. Example:

GetDisplayTooltip()

Returns: CRMScript.Global.String - The column tooltip, used in the column list and in the column headings. Example:

GetDisplayType()

Returns: CRMScript.Global.String - Type of column, so that the archive knows how to display it (actual display values are always strings, invariant-culture formatted). This name can contain resource tags. Example:

GetHeadingIconHint()

Returns: CRMScript.Global.String - Icon hint for the archive heading only. If this is a nonempty string, the archive header should use this icon and ignore the DisplayName. Otherwise, the DisplayName should be used as the heading. Example:

GetIconHint()

Returns: CRMScript.Global.String - Icon hint corresponding to the display name.
The icon hint is used in the configuration dialog and other places where we talk about the columns of the archive. The actual heading of the archive may also contain icons in lieu of textual names, the icon hint for that is specified in HeadingIconHint and is a different one.
Example:

GetIsVisible()

Returns: CRMScript.Global.Bool - Is this column visible to the user in configuration dialogs and similar? Example:

GetName()

Returns: CRMScript.Global.String - Unique identity of this column (in this particular context).
The name to be used when requesting the column from a provider, setting restrictions or order by criteria
Example:

GetRestrictionListName()

Returns: CRMScript.Global.String - If the restriction data type is list, this property contains the name of the SoList so that choices can be shown. Example:

GetRestrictionType()

Returns: CRMScript.Global.String - The data type of the restriction; use this to retrieve the legal operators for the restriction. Example:

GetSourceCode()

Returns: CRMScript.Global.String

GetWidth()

Returns: CRMScript.Global.String - The width specification, if the column info has been extended with GUI-based information. It is either “n%” or “nc”, where n is an integer.
Percent-formatted fields grow and shrink; number-of-characters formatted fields have constant width when the whole archive width changes.
Example:

SetCanOrderBy(Bool)

Sets the CanOrderBy property.
Returns: CRMScript.Global.Void Example:

SetCanRestrictBy(Bool)

Sets whether the column can be used as an restriction.
Returns: CRMScript.Global.Void Example:

SetDisplayName(String)

Returns: CRMScript.Global.Void Example:

SetDisplayTooltip(String)

Returns: CRMScript.Global.Void Example:

SetDisplayType(String)

Returns: CRMScript.Global.Void Example:

SetHeadingIconHint(String)

Returns: CRMScript.Global.Void
If this is a nonempty string, the archive header should use this icon and ignore the DisplayName. Otherwise, the DisplayName should be used as the heading.
Example:

SetIconHint(String)

Returns: CRMScript.Global.Void
This icon hint is used in the configuration dialog and other places where we talk about the columns of the archive. The actual heading of the archive may also contain icons in lieu of textual names, the icon hint for that is specified in HeadingIconHint and is a different one.
Example:

SetIsVisible(Bool)

Sets the visibility of the column.
Returns: CRMScript.Global.Void Example:

SetName(String)

Returns: CRMScript.Global.Void
The name to be used when requesting the column from a provider, setting restrictions or order by criteria
Example:

SetRestrictionListName(String)

Returns: CRMScript.Global.Void Example:

SetRestrictionType(String)

Returns: CRMScript.Global.Void
Use this to retrieve the legal operators for the restriction.
Example:

SetSourceCode(String)

Returns: CRMScript.Global.Void

SetWidth(String)

Returns: CRMScript.Global.Void
Percent-formatted fields grow and shrink; number-of-characters formatted fields have constant width when the whole archive width changes.
Example: