<SelectionCountRule> (RibbonDiffXml)

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

偵測方格中選取多少項目的規則。

語法

<SelectionCountRule 
 AppliesTo=["PrimaryEntity" | "SelectedEntity"] 
 Default=["0" | "1" | "true" | "false"]
 InvertResult=["0" | "1" | "true" | "false"] 
 Maximum="Integer" 
 Minimum="Integer" 
 />

屬性和元素

The following describes the attributes, child elements, and parent elements.

屬性

Attribute Description Type Usage

AppliesTo

決定規則套用至表單中顯示的實體記錄或子格中顯示的實體記錄。

Valid values:

 

Value Description

PrimaryEntity

對於表單或子格功能區,規則會套用至表單中顯示的實體。此選項不適用於方格功能區。

SelectedEntity

對於方格或子格功能區,此規則會套用至方格中顯示的實體。

Enumeration

Optional

Default

設定當無法判斷實際值時,規則的預設傳回值。

Boolean

Optional

InvertResult

變換規則傳回值的正負號。

Boolean

Optional

Maximum

The maximum number of selected elements.

Integer

Optional

Minimum

The minimum number of selected elements.

Integer

Optional

子元素

此元素沒有子元素。

上層元素

Element Description

<EnableRule> (RibbonDiffXml)

指定用於啟用或停用功能區元素或命令定義中 EnableRule 參照的規則定義。

<Or> (RibbonDiffXml)

指定一組必須同時評估的規則。

元素資訊

XPath

//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/SelectionCountRule |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/OrRule/Or/SelectionCountRule

Schema Name

SelectionCountRuleType

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.