<ReferencingAttributeRequiredRule> (RibbonDiffXml)
Gælder for: CRM 2016 on-prem, CRM Online
En regel, der registrerer, om den attribut for et objekt, der henvises til, er påkrævet.
Syntaks
<ReferencingAttributeRequiredRule
Default=["0" | "1" | "true" | "false"]
InvertResult=["0" | "1" | "true" | "false"]
/>
Attributter og elementer
The following describes the attributes, child elements, and parent elements.
Attributter
Attribute | Description | Type | Usage |
---|---|---|---|
Default |
Angiver standardreturværdien for reglen, hvis den faktiske værdi ikke kan bestemmes. |
Boolean |
Optional |
InvertResult |
Gør reglens returværdi negativ. |
Boolean |
Optional |
Underordnede elementer
Dette element har ingen underordnede elementer.
Overordnede elementer
Element | Description |
---|---|
Angiver enten definitionen på den regel, der bruges til at få vist et element på båndet, eller en reference til en DisplayRule fra en kommandodefinition. |
|
Angiver et sæt regler, der skal evalueres samlet. |
Bemærkninger
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.
Elementoplysninger
XPath |
|
Schema Name |
ReferencingAttributeRequiredRuleType |
Validation File |
RibbonTypes.xsd |
Can be Empty |
Yes |
Se også
Andre ressourcer
Ribbon XML reference
Tilpasse kommandoer og båndet
Microsoft Dynamics CRM 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.