<Or> (RibbonDiffXml)

应用到: CRM 2015 on-prem, CRM Online

指定一组必须一起评估的规则。

语法

<OrRule>
 <Or >
  <CommandClientTypeRule />
  <CrmClientTypeRule />
  <CrmOfflineAccessStateRule/>
  <CrmOutlookClientTypeRule/>
  <CrmOutlookClientVersionRule/>
  <EntityPrivilegeRule/>
  <EntityPropertyRule/>
  <EntityRule/>
  <FormEntityContextRule/>
  <FormStateRule/>
  <MiscellaneousPrivilegeRule/>  <OptionsSetRule />
  <OrganizationSettingRule/>
  <OutlookRenderTypeRule/>
  <OutlookVersionRule/>
  <PageRule/>
  <ReferencingAttributeRequiredRule/>
  <RelationshipTypeRule/>
  <SkuRule/>
  <ValueRule/>
 </Or>
</OrRule>

属性和元素

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

属性

此元素不具有属性。

子元素

Element Description

<CommandClientTypeRule> (RibbonDiffXml)

指定用于检测使用中的演示类型的规则。

<CrmClientTypeRule> (RibbonDiffXml)

指定用于检测 Microsoft Dynamics CRM 客户端的类型的规则。

<CrmOutlookClientTypeRule> (RibbonDiffXml)

指定用于检测 Microsoft Dynamics CRM for Microsoft Office Outlook 客户端的类型的规则。

<CrmOfflineAccessStateRule> (RibbonDiffXml)

指定一项规则,可用于检测带脱机访问功能的 Microsoft Dynamics CRM for Outlook 当前是否脱机运行。

<CustomRule> (RibbonDiffXml)

指定用于包含对 JavaScript 库中的函数的引用的 EnableRule 定义的规则。

When descendant of <EnableRule> (RibbonDiffXml).

<EntityRule> (RibbonDiffXml)

指定一项可检测特定实体是否位于上下文中的规则。

<EntityPrivilegeRule> (RibbonDiffXml)

指定可用于检测当前用户对特定实体具有的权限的规则。

When descendant of <DisplayRule> (RibbonDiffXml).

<EntityPropertyRule> (RibbonDiffXml)

指定可检测特定的 Boolean 实体属性的规则。

When descendant of <DisplayRule> (RibbonDiffXml).

<FormEntityContextRule> (RibbonDiffXml)

指定一项规则,该规则可检测窗体功能区是否显示在特定实体的上下文中。

When descendant of <DisplayRule> (RibbonDiffXml).

<FormStateRule> (RibbonDiffXml)

指定可检测窗体状态的规则。

<MiscellaneousPrivilegeRule> (RibbonDiffXml)

指定可检测用户是否具有特定 Microsoft Dynamics CRM 权限的规则。

When descendant of <DisplayRule> (RibbonDiffXml).

<OptionSetRule> (RibbonDiffXml)

仅供内部使用。

<OrganizationSettingRule> (RibbonDiffXml)

一项规则,可检测 DisplayRule 中的两种特定组织设置。

When descendant of <DisplayRule> (RibbonDiffXml).

<OutlookRenderTypeRule> (RibbonDiffXml)

一项规则,可检测窗体或列表项是作为网页呈现还是在 Outlook 中本机呈现来确定是否应显示某个功能区元素。

When descendant of <DisplayRule> (RibbonDiffXml).

<OutlookItemTrackingRule> (RibbonDiffXml)

一项规则,可用于检测是否已为 Microsoft Dynamics CRM 中跟踪的项启用此项以便启用功能区元素。

When descendant of <EnableRule> (RibbonDiffXml).

<OutlookVersionRule> (RibbonDiffXml)

一项规则,用于检测 Microsoft Office Outlook 客户端的版本。

<PageRule> (RibbonDiffXml)

一项用于评估当前页的地址的规则。

<RecordPrivilegeRule> (RibbonDiffXml)

一项规则,用于检测用户对特定记录具有的权限以便启用功能区元素。

When descendant of <EnableRule> (RibbonDiffXml).

<ReferencingAttributeRequiredRule> (RibbonDiffXml)

一项规则,用于检测是否需要实体的引用属性。

When descendant of <DisplayRule> (RibbonDiffXml).

<RelationshipTypeRule> (RibbonDiffXml)

一项规则,用于检测是否需要实体的引用属性。

When descendant of <DisplayRule> (RibbonDiffXml).

<SelectionCountRule> (RibbonDiffXml)

一项用于检测网格中选定项的数目的规则。

When descendant of <EnableRule> (RibbonDiffXml).

<SkuRule> (RibbonDiffXml)

用于检测 Microsoft Dynamics CRM 的版本的规则。

<ValueRule> (RibbonDiffXml)

一项用于检测特定字段的值的规则。

父元素

Element Description

<OrRule> (RibbonDiffXml)

一项包含规则集合的规则,如果该规则集合中的任一规则的评估结果为 true 时,则此规则的评估结果为 true。

元素信息

XPath

//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/OrRule/Or
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/OrRule/Or

Schema Name

  • OrEnableRuleType/Or

  • OrDisplayRuleType/Or

Validation File

RibbonTypes.xsd

Can be Empty

No

另请参阅

其他资源

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.