<JavaScriptFunction> (RibbonDiffXml)
Betrifft: CRM 2015 on-prem, CRM Online
Gibt eine Aktion an, die eine Funktion von einer bestimmten JavaScript-Bibliothek aufruft.
Syntax
<JavaScriptFunction
FunctionName="String"
Library="String" >
<BoolParameter/>
<CrmParameter />
<DecimalParameter/>
<IntParameter/>
<StringParameter/>
</JavaScriptFunction>
Attribute und Elemente
The following table lists the attributes, child elements, and parent elements.
Attribute
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 |
Untergeordnete Elemente
Element | Description |
---|---|
Gibt einen Wert mit einem Booleschen Datentyp an, der als Parameter übergeben werden kann. |
|
Stellt aus der Microsoft Dynamics CRM-Anwendung abgerufene Daten dar, die als Parameter übergeben werden können. |
|
Gibt einen Wert mit einem Dezimalzahl-Datentyp an, der als Parameter übergeben werden kann. |
|
Gibt einen Wert mit einem Ganzzahl-Datentyp an, der als Parameter übergeben werden kann. |
|
Gibt einen Wert mit einem Zeichenfolgendatentyp an, der als Parameter übergeben werden kann. |
Übergeordnete Elemente
Element | Description |
---|---|
Gibt die Aktionen an, die von einem Befehl ausgeführt werden. |
Anmerkungen
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.
Hinweis
Opening entity forms in a dialog window using showModalDialog or showModelessDialog is not supported.
Elementinformationen
XPath |
|
Schema Name |
JavaScriptFunctionType |
Validation File |
RibbonTypes.xsd |
Can be Empty |
Yes |
Siehe auch
Konzepte
Verwendung von JavaScript mit Microsoft Dynamics CRM
Weitere Ressourcen
Ribbon XML reference
Anpassen von Befehlen und des Menübands
Microsoft Dynamics CRM 2015 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.