Partager via


<event> (FormXml)

S'applique à: CRM 2016 on-prem, CRM Online

Spécifie un événement pour le formulaire ou le champ.

Syntaxe

<event
 active=["0" | "1" | "true" | "false"]
 application=["0" | "1" | "true" | "false"]
 attribute="String"
 BehaviorInBulkEditForm="String"
 eventType=["DataEvent" | "ControlEvent"]
 name="String">
 <dependencies />
 <Handlers />
 <InternalHandlers />
</event>

Attributs et éléments

The following describes the attributes, child elements, and parent elements.

Attributs

Attribute Description Type Usage

active

Describes whether the event is enabled for the form or the field. The default value is false.

Boolean

Optional

application

For internal use only.

Boolean

Optional

attribute

The name of an attribute for an OnChange event.

String

Optional

BehaviorInBulkEditForm

Utilisation interne uniquement. Do not change this value.

Enumeration (BehaviorInBulkEditForm)

Optional

eventType

Valid values:

  • DataEvent

  • ControlEvent

Enumeration (CrmEventType)

Optional

name

The name of the event to associate scripts with. Valid values:

  • onload

  • onchange

  • onsave

  • tabstatechange

  • onreadystatecomplete

String

Optional

Éléments enfants

Element Description

<dependencies> (FormXml)

Contient les dépendances pour un événement.

<Handlers> (FormXml)

Contient tous les gestionnaires d'événements pour un événement.

<InternalHandlers> (FormXml)

Utilisation interne uniquement. Contient des gestionnaires d'événements définis par Microsoft Dynamics CRM.

Éléments parents

Element Description

<events> (FormXml)

Contient toutes les définitions d'événement pour une cellule ou un formulaire.

Informations sur l'élément

Schema Type

complexType

Validation File

FormXml.xsd

Number of Occurrences

0 or more

XPath

//FormXml/forms/systemform/form/events/event |
//FormXml/forms/systemform/form/tabs/tab/events/event |
//FormXml/forms/systemform/form/tabs/tab/columns/column/sections/section/events/event  |
//FormXml/forms/systemform/form/tabs/tab/columns/column/sections/section/rows/row/cell/events/event

Voir aussi

Concepts

Personnaliser les formulaires d’entités

Autres ressources

Form XML reference

Microsoft Dynamics CRM 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.