<EntityRule> (RibbonDiffXml)

Se aplica a: CRM 2016 on-prem, CRM Online

Especifica una regla que puede detectar si una entidad específica está en contexto.

Sintaxis

<EntityRule 
 AppliesTo=["PrimaryEntity" | "SelectedEntity"]
 Context=["Form" | "HomePageGrid" | "SubGridStandard" |"SubGridAssociated"]
 Default=["0" | "1" | "true" | "false"]
 EntityName="String" 
 InvertResult=["0" | "1" | "true" | "false"]
/>

Atributos y elementos

The following table lists the attributes, child elements, and parent elements.

Atributos

Attribute Description Type Usage

AppliesTo

Determina si la regla se aplica al registro de la entidad mostrada en el formulario o los registros de entidad mostrados en una subcuadrícula.

Valid values:

 

Value Description

PrimaryEntity

Para una cinta de opciones de subcuadrícula o formulario, la regla se aplica a la entidad mostrada en el formulario. Esta opción no se aplica para la cinta de opciones de cuadrícula.

SelectedEntity

Para una cinta de opciones de cuadrícula o subcuadrícula, esta regla se aplica a la entidad que aparece en la cuadrícula.

Enumeration

Optional

Context

Specifies the context of the ribbon.

Valid values:

 

Value Description

Form

For the form ribbon.

HomePageGrid

For the ribbon that is displayed for the list of records that appear in the main application navigation pane.

SubGridStandard

For the ribbon that is displayed for the list of records that appear in a subgrid in a form.

SubGridAssociated

For the ribbon that is displayed for the list of records that appear in the navigation area of a form.

String

Optional

Default

Define el valor de retorno predeterminado para la regla si el valor real no se puede determinar.

This attribute is not valid when this element is a child of <TabDisplayRule> (RibbonDiffXml)

Boolean

Optional

EntityName

Especifica la entidad a la que se aplicará esta regla. Use el nombre lógico de la entidad, por ejemplo, "new_customentity".

String

Required

InvertResult

Niega el valor de devolución de la regla.

This attribute is not valid when this element is a child of <TabDisplayRule> (RibbonDiffXml)

Boolean

Optional

Elementos secundarios

Este elemento no tiene elementos secundarios.

Elementos primarios

Element Description

<TabDisplayRule> (RibbonDiffXml)

Especifica condiciones en las que se mostrará una pestaña.

<DisplayRule> (RibbonDiffXml)

Especifica la definición de una regla usada para mostrar un elemento de la cinta de opciones o una referencia a una DisplayRule de una definición de comando.

<EnableRule> (RibbonDiffXml)

Especifica la definición de una regla usada para habilitar o deshabilitar un elemento de la cinta de opciones o una referencia a una EnableRule de una definición de comando.

<Or> (RibbonDiffXml)

Especifica un conjunto de reglas que deben evaluarse en conjunto.

Comentarios

The InvertResult and Default attributes are not valid when this element is a child of <TabDisplayRule> (RibbonDiffXml)

Información del elemento

XPath

//RibbonDiffXml/RuleDefinitions/TabSelectionRules/TabSelectionRule/EntityRule |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/EntityRule |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/EntityRule |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/OrRule/Or/EntityRule |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/OrRule/Or/EntityRule

Schema Name

EntityRuleType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

Vea también

Otros recursos

Ribbon XML reference
Personalizar los comandos y la cinta de opciones

Microsoft Dynamics CRM 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.