分享方式:


<Handler> (FormXml)

適用於: CRM 2015 on-prem, CRM Online

為事件指定要呼叫的 JavaScript 程式庫和函數。

語法

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

屬性和元素

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

屬性

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

子元素

此元素沒有子元素。

上層元素

Element Description

<Handlers> (FormXml)

包含事件的所有事件處理常式。

元素資訊

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

請參閱

參照

執行內容 (用戶端參考)

概念

自訂實體表單

其他資源

Form XML reference

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