Compartilhar via


Define ribbon tab display rules

 

Applies To: Dynamics CRM 2013

Tab display rules control whether a specific tab is displayed for a ribbon or not.

Unlike other ribbon elements like groups or specific controls, you must explicitly provide a tab display rule for a tab to be displayed in the ribbon. By default, other ribbon elements will always display unless a display rule removes them.

<TabDisplayRule> (RibbonDiffXml) elements require that the TabCommand attribute matches a <Tab> (RibbonDiffXml) Command attribute value.

In the RibbonDiffXml, tabs can be defined for specific entities or defined globally. If the tab is defined for an entity, the only valid type of rule is <EntityRule> (RibbonDiffXml). Because defining a tab in the scope of a particular entity already limits the tab to only that entity, the only valid attributes are AppliesTo (PrimaryEntity or SelectedEntity) and Context (Form, HomePageGrid, SubGridStandard, or SubGridAssociated).

When you define a tab display rule globally in the RibbonDiffXml for the application ribbons, you can apply both EntityRule elements and <PageRule> (RibbonDiffXml) elements.

See Also

Customize commands and the ribbon
Define scaling for ribbon elements
Pass parameters to a URL by using the ribbon