Compartir a través de


<ReferencingAttributeRequiredRule> (RibbonDiffXml)

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

Una regla que detecta si es necesaria la referencia a un atributo para una entidad.

Sintaxis

<ReferencingAttributeRequiredRule 
 Default=["0" | "1" | "true" | "false"]
 InvertResult=["0" | "1" | "true" | "false"]
 />

Atributos y elementos

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

Atributos

Attribute Description Type Usage

Default

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

Boolean

Optional

InvertResult

Niega el valor de devolución de la regla.

Boolean

Optional

Elementos secundarios

Este elemento no tiene elementos secundarios.

Elementos primarios

Element Description

<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.

<Or> (RibbonDiffXml)

Especifica un conjunto de reglas que deben evaluarse en conjunto.

Comentarios

This is a very specific rule for a very specific case. Use this rule when there is a relationship bound subgrid or an associated grid on the page. This rule will test whether the referencing attribute used in the relationship is required. This rule is used to hide the Add Existing <record type> button when it isn’t appropriate to display it.

In an entity relationship the lookup field in the related record (the referencing attribute) may be required or not. For example, the Regarding field of an activity is not required yet the Potential Customer field of an opportunity is required. The Add Existing Activity button will set the Regarding field value to the current record context and it can only work if the Regarding field doesn’t already have a value. All Opportunity records have a value in their Potential Customer field, so it never makes sense to display an Add Existing Opportunity button. This rule detects that the referencing attribute is required and therefore returns true.

Información del elemento

XPath

//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/ReferencingAttributeRequiredRule
|
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/OrRule/Or/ReferencingAttributeRequiredRule

Schema Name

ReferencingAttributeRequiredRuleType

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.