<EntityPropertyRule> (RibbonDiffXml)
Specifies a rule that can detect specific Boolean entity properties.
<EntityPropertyRule AppliesTo=["PrimaryEntity" | " SelectedEntity "] Default =["0" | "1" | "true" | "false"] EntityName="String" InvertResult =["0" | "1" | "true" | "false"] PropertyName=["DuplicateDetectionEnabled" | "GridFiltersEnabled" | "HasStateCode" | "IsConnectionsEnabled" | "MailMergeEnabled" | "WorksWithQueue" | "HasActivities" | "IsActivity" | "HasNotes" | "IsCustomizable"] PropertyValue=["0" | "1" | "true" | "false"] />
The following table lists 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:
|
Enumeration |
Optional |
||||||||||||||||||||||
|
Default |
Sets the default return value for the rule if the actual value cannot be determined. |
Boolean |
Optional |
||||||||||||||||||||||
|
EntityName |
Specifies the entity that this rule will apply to. Use the entity logical name, for example, "new_customentity". |
String |
Optional |
||||||||||||||||||||||
|
InvertResult |
Negates the return value of the rule. |
Boolean |
Optional |
||||||||||||||||||||||
|
PropertyName |
The name of the boolean entity property to check. Valid values:
|
Enumeration |
Required |
Child Elements
This element has no child elements.
Parent Elements
| Element | Description |
|---|---|
|
Specifies either the definition of a rule used to display a ribbon element or a reference to a DisplayRule from a command definition. |
|
|
Specifies a set of rules that must be evaluated together. |
|
XPath |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/EntityPropertyRule | //RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/OrRule/Or/EntityPropertyRule |
|
Schema Name |
EntityPropertyRuleType |
|
Validation File |
RibbonTypes.xsd |
|
Can be Empty |
Yes |
Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2012 Microsoft Corporation. All rights reserved.