다음을 통해 공유


<EntityRule> (RibbonDiffXml)

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

특정 엔터티가 컨텍스트에 있는지 여부를 검색할 수 있는 규칙을 지정합니다.

구문

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

특성 및 요소

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

특성

Attribute Description Type Usage

AppliesTo

규칙이 양식에 표시되는 엔터티 레코드에 적용되는지 아니면 하위 표에 표시되는 엔터티 레코드에 적용되는지 결정합니다.

Valid values:

 

Value Description

PrimaryEntity

양식 또는 하위 표 리본의 경우 규칙은 양식에 표시된 엔터티에 적용됩니다. 이 옵션은 표 리본에는 적용되지 않습니다.

SelectedEntity

표 또는 하위 표 리본의 경우 이 규칙은 표에 나타나는 엔터티에 적용됩니다.

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

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

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

Boolean

Optional

EntityName

규칙이 적용될 엔터티를 지정합니다. 엔터티의 논리적 이름(예: "new_customentity")을 사용합니다.

String

Required

InvertResult

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

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

Boolean

Optional

하위 요소

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

상위 요소

Element Description

<TabDisplayRule> (RibbonDiffXml)

탭이 표시되는 조건을 지정합니다.

<DisplayRule> (RibbonDiffXml)

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

<EnableRule> (RibbonDiffXml)

리본 요소를 설정하거나 해제하는 데 사용되는 규칙의 정의 또는 명령 정의의 EnableRule에 대한 참조를 지정합니다.

<Or> (RibbonDiffXml)

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

설명

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

요소 정보

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

참고 항목

기타 리소스

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

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