Jaa


<SelectionCountRule> (RibbonDiffXml)

 

Applies To: Dynamics CRM 2015

A rule that detects how many items in a grid are selected.

Syntax

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

Attributes and Elements

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

Attributes

Attribute

Description

Type

Usage

AppliesTo

Determines whether the rule applies to the entity record being displayed in the form or entity records being displayed in a sub-grid.

Valid values:

Value

Description

PrimaryEntity

For a form or Subgrid ribbon, the rule applies to the entity displayed in the form. This will option does not apply for a Grid Ribbon.

SelectedEntity

For a Grid or Subgrid ribbon this rule applies to the entity that appears in the grid.

Enumeration

Optional

Default

Sets the default return value for the rule if the actual value cannot be determined.

Boolean

Optional

InvertResult

Negates the return value of the rule.

Boolean

Optional

Maximum

The maximum number of selected elements.

Integer

Optional

Minimum

The minimum number of selected elements.

Integer

Optional

Child Elements

This element has no child elements.

Parent Elements

Element

Description

<EnableRule> (RibbonDiffXml)

Specifies either the definition of a rule used to enable or disable a ribbon element or a reference to an EnableRule from a command definition.

<Or> (RibbonDiffXml)

Specifies a set of rules that must be evaluated together.

Element Information

XPath

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

Schema Name

SelectionCountRuleType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

See Also

Ribbon XML reference
Customize commands and the ribbon

© 2016 Microsoft. All rights reserved. Copyright