<JavaScriptFunction> (RibbonDiffXml)
適用於: CRM 2016 on-prem, CRM Online
指定呼叫 JavaScript 程式庫中之函數的動作。
語法
<JavaScriptFunction
FunctionName="String"
Library="String" >
<BoolParameter/>
<CrmParameter />
<DecimalParameter/>
<IntParameter/>
<StringParameter/>
</JavaScriptFunction>
屬性和元素
The following table lists the attributes, child elements, and parent elements.
屬性
Attribute | Description | Type | Usage |
---|---|---|---|
FunctionName |
The name of the JavaScript function to call. This string must begin with a letter, the underscore (“_”) character, or the dollar (“$”) symbol. The remaining characters can be any combination of letters, numbers, the underscore character, the dollar symbol or periods. |
String |
Required |
Library |
The name of the JavaScript library Web resource that contains the function. Use the $webresource: directive when specifying the library. |
String |
Required |
子元素
Element | Description |
---|---|
指定布林資料類型、可做為參數傳遞的值。 |
|
代表從 Microsoft Dynamics CRM 應用程式擷取,可做為參數傳遞的資料。 |
|
指定小數資料類型、可做為參數傳遞的值。 |
|
指定整數資料類型、可做為參數傳遞的值。 |
|
指定字串資料類型、可做為參數傳遞的值。 |
上層元素
Element | Description |
---|---|
指定命令將執行的動作。 |
備註
If you are using this element to call a function that will use window.open to open a web resource, consider using the <Url> (RibbonDiffXml) action instead. With the <Url> action you can specify the Web resource using the $webresource Directive to specify the web resource to open. This will allow the application to specify the URL to the cached web resource and will result in better performance, particularly if the web resource is an HTML web resource that hosts a Silverlight web resource.
備註
Opening entity forms in a dialog window using showModalDialog or showModelessDialog is not supported.
元素資訊
XPath |
|
Schema Name |
JavaScriptFunctionType |
Validation File |
RibbonTypes.xsd |
Can be Empty |
Yes |
請參閱
概念
使用 JavaScript 搭配 Microsoft Dynamics CRM
其他資源
Microsoft Dynamics CRM 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.