Share via


<Handler> (FormXml)

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

Spécifie une bibliothèque JavaScript et une fonction à appeler pour un événement.

Syntaxe

<Handler
 enabled=["0" | "1" | "true" | "false"]
 functionName="String"
 handlerUniqueId="String"
 libraryName="String"
 parameters="String"
 passExecutionContext=["0" | "1" | "true" | "false"]
 <dependencies />
</Handler>

Attributs et éléments

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

Attributs

Attribute Description Type Usage

enabled

Specifies whether the handler is enabled

Boolean

Optional

functionName

Specifies the name of the function.

String

Required

handlerUniqueId

The unique ID for the handler.

String

Required

libraryName

The name of the Script Web Resource that contains the function.

String

Required

parameters

The values passed to the function

String

Optional

passExecutionContext

Indicates whether the execution context should be passed to the function.

Boolean

Optional

Éléments enfants

Cet élément n'a pas d'élément enfant.

Éléments parents

Element Description

<Handlers> (FormXml)

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

Informations sur l'élément

Schema Type

FormXmlHandlerType

Validation File

FormXml.xsd

Number of Occurrences

0 or more

XPath

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

Voir aussi

Référence

Contexte d'exécution (référence côté client)

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.