<JavaScriptFunction> (RibbonDiffXml)
適用於: CRM 2015 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 JScript 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 JScript 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 2015 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.