Deli z drugimi prek


<Or> (RibbonDiffXml)

 

Applies To: Dynamics CRM 2015

Specifies a set of rules that must be evaluated together.

Syntax

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

Attributes and Elements

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

Attributes

This element has no attributes.

Child Elements

Element

Description

<CommandClientTypeRule> (RibbonDiffXml)

Specifies a rule that detects the type of presentation being used.

<CrmClientTypeRule> (RibbonDiffXml)

Specifies a rule that detects the type of Microsoft Dynamics CRM client.

<CrmOutlookClientTypeRule> (RibbonDiffXml)

Specifies a rule that detects the type of Microsoft Dynamics CRM for Microsoft Office Outlook client.

<CrmOfflineAccessStateRule> (RibbonDiffXml)

Specifies a rule that can be used to detect whether Microsoft Dynamics CRM for Outlook with Offline Access is currently operating offline.

<CustomRule> (RibbonDiffXml)

Specifies a rule used with an EnableRule definition that is composed of a reference to a function within a JavaScript library.

When descendant of <EnableRule> (RibbonDiffXml).

<EntityRule> (RibbonDiffXml)

Specifies a rule that can detect whether a specific entity is in context.

<EntityPrivilegeRule> (RibbonDiffXml)

Specifies a rule that can detect the current user's permissions for a specific entity.

When descendant of <DisplayRule> (RibbonDiffXml).

<EntityPropertyRule> (RibbonDiffXml)

Specifies a rule that can detect specific Boolean entity properties.

When descendant of <DisplayRule> (RibbonDiffXml).

<FormEntityContextRule> (RibbonDiffXml)

Specifies a rule that can detect whether a form ribbon is displayed in the context of a specific entity.

When descendant of <DisplayRule> (RibbonDiffXml).

<FormStateRule> (RibbonDiffXml)

Specifies a rule that can detect the state of the form.

<MiscellaneousPrivilegeRule> (RibbonDiffXml)

Specifies a rule that can detect whether the user possesses a specific Microsoft Dynamics CRM privilege.

When descendant of <DisplayRule> (RibbonDiffXml).

<OptionSetRule> (RibbonDiffXml)

For internal use only.

<OrganizationSettingRule> (RibbonDiffXml)

A rule that can detect two specific organization settings within a DisplayRule.

When descendant of <DisplayRule> (RibbonDiffXml).

<OutlookRenderTypeRule> (RibbonDiffXml)

A rule that can detect whether a form or list item is rendered as a web page or natively in Outlook in order to determine if a ribbon element should be displayed.

When descendant of <DisplayRule> (RibbonDiffXml).

<OutlookItemTrackingRule> (RibbonDiffXml)

A rule that detects whether the item is enabled for items tracked in Microsoft Dynamics CRM in order to enable a ribbon element.

When descendant of <EnableRule> (RibbonDiffXml).

<OutlookVersionRule> (RibbonDiffXml)

A rule that detects the version of Microsoft Office Outlook client.

<PageRule> (RibbonDiffXml)

A rule that evaluates the address of the current page.

<RecordPrivilegeRule> (RibbonDiffXml)

A rule that detects a user’s privileges for a specific record in order to enable a ribbon element.

When descendant of <EnableRule> (RibbonDiffXml).

<ReferencingAttributeRequiredRule> (RibbonDiffXml)

A rule that detects whether the referencing attribute for an entity is required.

When descendant of <DisplayRule> (RibbonDiffXml).

<RelationshipTypeRule> (RibbonDiffXml)

A rule that detects whether the referencing attribute for an entity is required.

When descendant of <DisplayRule> (RibbonDiffXml).

<SelectionCountRule> (RibbonDiffXml)

A rule that detects how many items in a grid are selected.

When descendant of <EnableRule> (RibbonDiffXml).

<SkuRule> (RibbonDiffXml)

A rule that detects the Microsoft Dynamics CRM edition.

<ValueRule> (RibbonDiffXml)

A rule that detects the value of a specific field.

Parent Elements

Element

Description

<OrRule> (RibbonDiffXml)

A rule that contains a collection of rules so that this rule will evaluate as true if any of the rules in the collection evaluates as true.

Element Information

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

See Also

Ribbon XML reference
Customize commands and the ribbon

© 2016 Microsoft. All rights reserved. Copyright