Поделиться через


<Actions> (RibbonDiffXml)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Specifies the actions that a command will perform.

Syntax

<Actions>
 [<JavaScriptFunction /> | <Url /> ]
</Actions>

Attributes and Elements

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

Attributes

This element has no attributes.

Child Elements

Element

Description

<JavaScriptFunction> (RibbonDiffXml)

Specifies an action that calls a function from a specific JavaScript library.

<Url> (RibbonDiffXml)

An action that opens a web page at a specified address.

Parent Elements

Element

Description

<CommandDefinition> (RibbonDiffXml)

Specifies a set of rules that control how a ribbon element is displayed and actions to perform that can be referenced by ribbon elements and controls.

Example

This Actions element contains a <Url> (RibbonDiffXml) action that opens a Web resource into a window of a specified size while passing contextual parameters.

<Actions> <Url Address="$webresource:New_ShowParams.htm"      PassParams="true"      WinParams="height=200, width=400,toolbar=no, menubar=no,location=no" /></Actions>

Element Information

XPath

//RibbonDiffXml/CommandDefinitions/CommandDefinition/Actions

Schema Name

ActionsType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

See Also

Customize commands and the ribbon
Ribbon XML reference

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright