One preference item, which contains a specification (section/key), the raw string value, and the level at which this value was found.
Constructors
NSPreference()
Initializes a new instance of the NSPreference class.
Methods
Returns: CRMScript.Global.String - Display tooltip, populated when asked for. Formatted using CultureDataFormatter.
Suitable for binding display-datasource in lists, etc.
Example:
GetDisplayType()
Returns: CRMScript.Global.Integer - Display type, populated when asked for. See <xref href=“CRMScript.NetServer.PrefDescValueType” data-throw-if-not-resolved=“false”></xref>.
Example:
GetDisplayValue()
Returns: CRMScript.Global.String - Display value, populated when asked for. Formatted using CultureDataFormatter.
Suitable for binding display-datasource in lists, etc.
Example:
GetLevel()
Returns: CRMScript.Global.Integer - See <xref href=“CRMScript.NetServer.PreferenceLevel” data-throw-if-not-resolved=“false”></xref>. Undefined is returned for preferences that do not have a current setting.
Example:
GetPrefDescId()
Returns: CRMScript.Global.Integer - The ID of the prefdesc this preference is connected to.
Example:
GetRawValue()
Returns: CRMScript.Global.String - NSPreference value.
Example:
GetSpecification()
Returns: CRMScript.NetServer.NSPreferenceSpec - Preference specification, consisting of the section name and key name.
Example:
GetTableName()
Returns: CRMScript.Global.String - For DisplayType=PrefDescValueType.ListTableRef, TableName will contain the name of the table which the value reference to.
Example:
GetTabOrder()
Returns: CRMScript.NetServer.NSTabOrder
Example:
GetTargetId()
Returns: CRMScript.Global.Integer - The ID of the target row. The table it points at is specified by the preference type.
Example:
GetUserPreferenceId()
Returns: CRMScript.Global.Integer - The ID of the user preference.
Example:
Returns: CRMScript.Global.Void
Suitable for binding display-datasource in lists, etc.
Example:
SetDisplayType(Integer)
Returns: CRMScript.Global.Void
Example:
SetDisplayValue(String)
Returns: CRMScript.Global.Void
Suitable for binding display-datasource in lists, etc.
Example:
SetLevel(Integer)
Returns: CRMScript.Global.Void
Undefined is returned for preferences that do not have a current setting.
Example:
SetPrefDescId(Integer)
Returns: CRMScript.Global.Void
Example:
SetRawValue(String)
Returns: CRMScript.Global.Void
Example:
SetSpecification(NSPreferenceSpec)
Returns: CRMScript.Global.Void
Example:
SetTableName(String)
Returns: CRMScript.Global.Void
Example:
SetTabOrder(NSTabOrder)
Returns: CRMScript.Global.Void
Example:
SetTargetId(Integer)
Returns: CRMScript.Global.Void
Example:
SetUserPreferenceId(Integer)
Returns: CRMScript.Global.Void
Example: