<ReferencingAttributeRequiredRule> (RibbonDiffXml)

적용 대상: CRM 2016 on-prem, CRM Online

엔터티에 대한 참조 특성이 필요한지 여부를 검색하는 규칙입니다.

구문

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

특성 및 요소

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

특성

Attribute Description Type Usage

Default

실제 값을 결정할 수 없는 경우 규칙의 기본 반환 값을 설정합니다.

Boolean

Optional

InvertResult

규칙의 반환 값을 무효화합니다.

Boolean

Optional

하위 요소

이 요소에는 하위 요소가 없습니다.

상위 요소

Element Description

<DisplayRule> (RibbonDiffXml)

리본 요소를 표시하는 데 사용되는 규칙의 정의 또는 명령 정의의 DisplayRule에 대한 참조를 지정합니다.

<Or> (RibbonDiffXml)

함께 평가해야 할 규칙 집합을 지정합니다.

설명

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.

요소 정보

XPath

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

Schema Name

ReferencingAttributeRequiredRuleType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

참고 항목

기타 리소스

Ribbon XML reference
명령 및 리본 사용자 지정

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