分享方式:


<BoolParameter> (RibbonDiffXml)

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

指定布林資料類型、可做為參數傳遞的值。

語法

<BoolParameter
 Name="string"
 Value=["0" | "1" | "true" | "false"]
</ BoolParameter >

屬性和元素

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

屬性

Attribute Description Type Usage

Value

指定要做為參數傳遞的值。

Boolean

Required

Name

代表使用 Url 元素時為此值傳遞的查詢字串參數名稱。

The name of the Boolean value to pass when BoolParameter is used as a child of <Url> (RibbonDiffXml).

String

Required

備註

This parameter is only available when BooleanParameter is a child of <Url> (RibbonDiffXml).

子元素

此元素沒有子元素。

上層元素

Element Description

<JavaScriptFunction> (RibbonDiffXml)

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

<CustomRule> (RibbonDiffXml)

指定用於 EnableRule 定義的規則,由 JavaScript 程式庫內函數的參照所組成。

<Url> (RibbonDiffXml)

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

範例

This <Url> (RibbonDiffXml) action passes the Boolean value of ”false” with the name ”test” to a Web resource.

<Actions> <Url Address="$webresource:New_ShowParams.htm">  <BoolParameter Name="test"                 Value="false"/> </Url></Actions>

元素資訊

XPath

//RibbonDiffXml/CommandDefinitions/CommandDefinition/Actions/JavaScriptFunction/BoolParameter |
//RibbonDiffXml/CommandDefinitions/CommandDefinition/Actions/Url/BoolParameter |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/CustomRule/BoolParameter |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/OrRule/Or/CustomRule/BoolParameter |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/CustomRule/BoolParameter |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/OrRule/Or/CustomRule/BoolParameter

Schema Name

BoolParameterType or BoolNamedParameterType

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.