Share via


<ReferencingAttributeRequiredRule> (RibbonDiffXml)

Si applica a: CRM 2016 on-prem, CRM Online

Regola che rileva se l'attributo di riferimento per un'entità è obbligatorio.

Sintassi

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

Attributi ed elementi

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

Attributi

Attribute Description Type Usage

Default

Imposta il valore restituito predefinito per la regola se non è possibile determinare il valore effettivo.

Boolean

Optional

InvertResult

Nega il valore restituito della regola.

Boolean

Optional

Elementi figlio

Questo elemento non presenta elementi figlio.

Elementi padre

Element Description

<DisplayRule> (RibbonDiffXml)

Specifica la definizione di una regola utilizzata per visualizzare un elemento della barra multifunzione o un riferimento a un elemento DisplayRule da una definizione di comando.

<Or> (RibbonDiffXml)

Specifica un set di regole che è necessario valutare insieme.

Note

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.

Informazioni 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

Vedere anche

Altre risorse

Ribbon XML reference
Personalizzare i comandi e la barra multifunzione

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