<ReferencingAttributeRequiredRule> (RibbonDiffXml)

S'applique à: CRM 2015 on-prem, CRM Online

Règle détectant si l'attribut de référence pour une entité est obligatoire.

Syntaxe

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

Attributs et éléments

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

Attributs

Attribute Description Type Usage

Default

Définit la valeur par défaut renvoyée pour la règle si la valeur actuelle ne peut pas être déterminée.

Boolean

Optional

InvertResult

Rend la valeur renvoyée de la règle négative.

Boolean

Optional

Éléments enfants

Cet élément n'a pas d'élément enfant.

Éléments parents

Element Description

<DisplayRule> (RibbonDiffXml)

Spécifie la définition d'une règle utilisée pour afficher un élément du ruban ou une référence à une DisplayRule à partir d'une définition de commande.

<Or> (RibbonDiffXml)

Spécifie un ensemble de règles devant être évaluées ensemble.

Remarques

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.

Informations sur l'élément

XPath

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

Schema Name

ReferencingAttributeRequiredRuleType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

Voir aussi

Autres ressources

Ribbon XML reference
Personnaliser les commandes et le ruban

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