<TabDisplayRule> (RibbonDiffXml)

 

Applies To: Dynamics CRM 2015

Specifies conditions when a tab will display.

Syntax

<TabDisplayRule 
 TabCommand="String"
 >
 <EntityRule />
 <PageRule />
</TabDisplayRule>

Attributes and Elements

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

Attributes

Attribute

Description

Type

Usage

TabCommand

Associates the TabDisplayRule with a corresponding Tab.Command.

String

Required

Child Elements

Element

Description

<EntityRule> (RibbonDiffXml)

Specifies a rule that can detect whether a specific entity is in context.

<PageRule> (RibbonDiffXml)

A rule that evaluates the address of the current page.

PageRule is valid when TabDisplayRule is a descendent of ImportExportXml/RibbonDiffXml

Parent Elements

Element

Description

<TabDisplayRules> (RibbonDiffXml)

Contains a collection of TabDisplayRule elements.

Remarks

When a TabDisplayRule is defined outside a specific entity using ImportExportXml/RibbonDiffXml/RuleDefinitions, <PageRule> (RibbonDiffXml) is a valid child element.

Element Information

XPath

//RibbonDiffXml/RuleDefinitions/TabDisplayRules/TabDisplayRule

Schema Name

  • TabDisplayRulesEntityType

  • TabDisplayRulesGlobalType

Validation File

RibbonTypes.xsd

Can be Empty

No

See Also

Ribbon XML reference
Customize commands and the ribbon

© 2016 Microsoft. All rights reserved. Copyright