<PageRule> (RibbonDiffXml)
A rule that evaluates the address of the current page.
<PageRule Address="String" Default=["0" | "1" | "true" | "false"] InvertResult=["0" | "1" | "true" | "false"] />
The following describes the attributes, child elements, and parent elements.
Attributes
| Attribute | Description | Type | Usage |
|---|---|---|---|
|
Address |
The address of the page to evaluate. It should be a relative path to the page. Only Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online pages can be evaluated. |
String |
Required |
|
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 |
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 either the definition of a rule used to enable or disable a ribbon element or a reference to an EnableRule from a command definition. |
|
|
Specifies conditions when a tab will display. |
|
|
Specifies a set of rules that must be evaluated together. |
Only Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online pages can be evaluated to apply a page rule. External pages or HTML Web resources cannot be used.
|
XPath |
//RibbonDiffXml/RuleDefinitions/TabDisplayRules/TabDisplayRule/PageRule | //RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/PageRule | //RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/PageRule | //RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/OrRule/Or/PageRule | //RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/OrRule/Or/PageRule |
|
Schema Name |
PageRuleType |
|
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.
