Interface a Lookup attribute.

Hierarchy

Implemented by

Properties

A collection of all the controls on the form that interface with this attribute.

Methods

  • Adds a handler to be called when the attribute's value is changed.

    Parameters

    Returns void

  • Fire all "on change" event handlers.

    Returns void

  • Gets the attribute format.

    Returns Xrm.Attributes.AttributeFormat

    The format of the attribute.

    Values returned are:

    • date (datetime)
    • datetime (datetime)
    • duration (integer)
    • email (string)
    • language (optionset)
    • none (integer)
    • phone (string)
    • text (string)
    • textarea (string)
    • tickersymbol (string)
    • timezone (optionset)
    • url (string)
  • Gets a boolean value indicating whether this Attribute has unsaved changes.

    Returns boolean

    true if there are unsaved changes, otherwise false.

  • Gets a boolean value indicating whether the Lookup is a multi-value PartyList.

    Returns boolean

    true the attribute is a PartyList, otherwise false.

  • Gets the logical name of the attribute.

    Returns string

    The logical name.

  • Gets a reference to the record context of this attribute.

    Returns Xrm.Entity

    The parent record context.

  • Gets current submit mode for the attribute.

    Returns Xrm.SubmitMode

    The submit mode, as either "always", "never", or "dirty"

    Remarks

    The default value is "dirty"

  • Removes the handler from the "on change" event.

    Parameters

    Returns void

  • Sets a value for a column to determine whether it is valid or invalid with a message

    Parameters

    • isValid: boolean

      Specify false to set the column value to invalid and true to set the value to valid.

    • Optional message: string

      The message to display.

    Returns void

  • Sets the submit mode.

    Parameters

    • submitMode: Xrm.SubmitMode

      The submit mode, as either "always", "never", or "dirty".

    Returns void

    Default

    submitMode "dirty"
    

    See

    AttributeRequirementLevel

  • Sets the value.

    Parameters

    Returns void

    Remarks

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

Generated using TypeDoc