<RelationshipTypeRule> (RibbonDiffXml)

適用於: CRM 2015 on-prem, CRM Online

規則,偵測兩個實體之間是否有特定類型的形式實體關聯。

語法

<RelationshipTypeRule 
 AllowCustomRelationship=["0" | "1" | "true" | "false"]
 AllowSystemRelationship=["0" | "1" | "true" | "false"]
 AppliesTo="SelectedEntity" 
 Default=["0" | "1" | "true" | "false"]
 InvertResult=["0" | "1" | "true" | "false"]
 RelationshipType=["OneToMany" | "ManyToMany" | "NoRelationship"]
 />

屬性和元素

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

屬性

Attribute Description Type Usage

AppliesTo

決定規則套用至表單中顯示的實體記錄或子格中顯示的實體記錄。

Valid values:

 

Value Description

SelectedEntity

對於方格或子格功能區,此規則會套用至方格中顯示的實體。

Enumeration

Required

Default

設定當無法判斷實際值時,規則的預設傳回值。

Boolean

Optional

InvertResult

變換規則傳回值的正負號。

Boolean

Optional

RelationshipType

Describes the type of entity relationship to check.

Valid values:

 

Value Description

OneToMany

在 1:N (一對多) 實體關聯中,一個實體有查詢屬性,允許實體物件儲存對另一個特定實體物件的參照。

ManyToMany

N:N (多對多) 實體關聯允許形式實體關聯,其中每個實體可顯示另一個實體的相關檢視表,甚至自我參照的關聯。N:N 關聯使用交集實體來儲存實體物件識別碼,讓物件相關聯。

NoRelationship

實體之間並未定義任何實體關聯。

Enumeration

Required

子元素

此元素沒有子元素。

上層元素

Element Description

<DisplayRule> (RibbonDiffXml)

指定用於顯示功能區元素或命令定義中 DisplayRule 參照的規則定義。

<Or> (RibbonDiffXml)

指定一組必須同時評估的規則。

元素資訊

XPath

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

Schema Name

RelationshipTypeRuleType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

請參閱

其他資源

Ribbon XML reference
自訂命令和功能區

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