分享方式:


<Actions> (RibbonDiffXml)

適用於: CRM 2015 on-prem, CRM Online

指定命令將執行的動作。

語法

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

屬性和元素

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

屬性

此元素沒有屬性。

子元素

Element Description

<JavaScriptFunction> (RibbonDiffXml)

指定呼叫 JavaScript 程式庫中之函數的動作。

<Url> (RibbonDiffXml)

動作,開啟位於指定之位址的網頁。

上層元素

Element Description

<CommandDefinition> (RibbonDiffXml)

指定可控制功能區元素顯示及執行動作方式,而且可由功能區元素和控制項參照的一組規則。

範例

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>

元素資訊

XPath

//RibbonDiffXml/CommandDefinitions/CommandDefinition/Actions

Schema Name

ActionsType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

請參閱

其他資源

自訂命令和功能區
Ribbon XML reference

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