Share via


<JavaScriptFunction> (RibbonDiffXml)

Se aplica a: CRM 2016 on-prem, CRM Online

Especifica una acción que llama a una función desde una biblioteca específica de JavaScript.

Sintaxis

<JavaScriptFunction 
 FunctionName="String"
 Library="String" >
 <BoolParameter/>
 <CrmParameter />
 <DecimalParameter/>
 <IntParameter/>
 <StringParameter/>
</JavaScriptFunction>

Atributos y elementos

The following table lists the attributes, child elements, and parent elements.

Atributos

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

Elementos secundarios

Element Description

<BoolParameter> (RibbonDiffXml)

Especifica un valor con un tipo de datos booleano que puede pasarse como parámetro.

<CrmParameter> (RibbonDiffXml)

Representa datos recuperados de la aplicación Microsoft Dynamics CRM que pueden pasarse como un parámetro.

<DecimalParameter> (RibbonDiffXml)

Especifica un valor con un tipo de datos decimal que puede pasarse como parámetro.

<IntParameter> (RibbonDiffXml)

Especifica un valor con un tipo de datos entero que puede pasarse como parámetro.

<StringParameter> (RibbonDiffXml)

Especifica un valor con un tipo de datos de cadena que puede pasarse como parámetro.

Elementos primarios

Element Description

<Actions> (RibbonDiffXml)

Especifica las acciones que realizará un comando.

Comentarios

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.

Nota

Opening entity forms in a dialog window using showModalDialog or showModelessDialog is not supported.

Información del elemento

XPath

//RibbonDiffXml/CommandDefinitions/CommandDefinition/Actions/JavaScriptFunction

Schema Name

JavaScriptFunctionType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

Vea también

Conceptos

Uso de JavaScript con Microsoft Dynamics CRM

Otros recursos

Ribbon XML reference
Personalizar los comandos y la cinta de opciones

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