Used to execute methods related to a single Attribute

Hierarchy

Implements

Constructors

Properties

Name: string
_attribute?: Xrm.Attributes.Attribute<any>

Accessors

  • get Value(): any
  • Gets the value.

    Returns any

    The value.

  • set Value(value): void
  • Parameters

    • value: any

    Returns void

Methods

  • Displays an error or recommendation notification for a control, and lets you specify actions to execute based on the notification.

    Parameters

    Returns Field

  • Gets a boolean value indicating whether this Attribute has unsaved changes.

    Returns boolean

    true if there are unsaved changes, otherwise false.

  • Clears the notification identified by uniqueId.

    Parameters

    • uniqueId: string

      (Optional) Unique identifier.

    Returns Field

    true if it succeeds, false if it fails.

    Remarks

    If the uniqueId parameter is not used, the current notification shown will be removed.

  • Sets the state of the control to either enabled, or disabled.

    Parameters

    • disabled: boolean

      true to disable, false to enable.

    Returns Field

  • Sets a control-local notification message.

    Parameters

    • message: string

      The message.

    • uniqueId: string

      Unique identifier.

    Returns Field

    true if it succeeds, false if it fails.

    Remarks

    When this method is used on Microsoft Dynamics CRM for tablets a red "X" icon appears next to the control. Tapping on the icon will display the message.

  • Sets the required level.

    Parameters

    • required: boolean

      The requirement level, as either false for "none" or true for "required"

    Returns Field

  • Sets the value.

    Parameters

    • value: any

      The value.

    Returns void

    Remarks

    Attributes on Quick Create Forms will not save values set with this method.

  • Sets the visibility state.

    Parameters

    • visible: boolean

      true to show, false to hide.

    Returns Field

Generated using TypeDoc