次の方法で共有


<DisplayRule> (RibbonDiffXml)

適用対象: CRM 2016 on-prem, CRM Online

リボン要素を表示するために使用するルールの定義またはコマンド定義から DisplayRule への参照を指定します。

注意

The DisplayRule element child elements are only valid when it is a grandchild of <RuleDefinitions> (RibbonDiffXml).

構文

<CommandDefinition>
 <DisplayRules>
  <DisplayRule
   Id="String"
  />
 </DisplayRules>
</CommandDefinition>
<RuleDefinitions>
 <DisplayRules>
  <DisplayRule 
   Id="String">
   <CommandClientTypeRule />
   <CrmClientTypeRule />
   <CrmOfflineAccessStateRule />
   <CrmOutlookClientTypeRule />
   <CrmOutlookClientVersionRule />
   <EntityPrivilegeRule />
   <EntityPropertyRule />
   <EntityRule />
   <FormEntityContextRule />
   <FormStateRule />
   <FormTypeRule />
   <HideForTabletExperienceRule />
   <MiscellaneousPrivilegeRule />   <OptionSetRule />
   <OrganizationSettingRule />
   <OrRule />
   <OutlookRenderTypeRule />
   <OutlookVersionRule />
   <PageRule />
   <ReferencingAttributeRequiredRule />
   <RelationshipTypeRule />
   <SkuRule />
   <ValueRule />
  </DisplayRule>
 </DisplayRules>
</RuleDefinitions>

属性と要素

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

属性

Attribute Description Type Usage

Id

Either:

  • A unique identifier for the definition of a Display Rule

  • A reference to the Id value of a definition of a Display Rule.

String

Required

下位要素

Element Description

<CommandClientTypeRule> (RibbonDiffXml)

使用される表示の種類を検出するルールを指定します。

<CrmClientTypeRule> (RibbonDiffXml)

Microsoft Dynamics CRM Client の種類を検出するルールを指定します。

<CrmOutlookClientTypeRule> (RibbonDiffXml)

Microsoft Office Outlook 用 Microsoft Dynamics CRM Client の種類を検出するルールを指定します。

<CrmOfflineAccessStateRule> (RibbonDiffXml)

オフライン アクセス対応 Outlook 用 Microsoft Dynamics CRM が現在オフラインで動作しているかどうかを検出するために使用できるルールを指定します。

<EntityPrivilegeRule> (RibbonDiffXml)

特定のエンティティの現在のユーザーのアクセス許可を検出するルールを指定します。

<EntityPropertyRule> (RibbonDiffXml)

ブール型の特定のエンティティのプロパティを検出するルールを指定します。

<EntityRule> (RibbonDiffXml)

特定のエンティティがコンテキスト内に含まれているかどうかを検出するルールを指定します。

<FormEntityContextRule> (RibbonDiffXml)

特定のエンティティのコンテキストにフォーム リボンが表示されるかどうかを検出するルールを指定します。

<FormStateRule> (RibbonDiffXml)

フォームの状態を検出するルールを指定します。

<FormTypeRule> (RibbonDiffXml)

Microsoft Dynamics CRM のフォームの種類を検出するルールを指定します。

<HideForTabletExperienceRule> (RibbonDiffXml)

Web アプリケーションをタブレット デバイスのモバイル ブラウザーで表示するときに false を返すルールを指定します。

<MiscellaneousPrivilegeRule> (RibbonDiffXml)

ユーザーが Microsoft Dynamics CRM の特定の特権を所有しているかどうかを検出できるルールを指定します。

<OptionSetRule> (RibbonDiffXml)

内部のみで使用します。

<OrganizationSettingRule> (RibbonDiffXml)

DisplayRule 内の組織の 2 つの特定の設定を検出するルール。

<OrRule> (RibbonDiffXml)

ルールのコレクションを格納するルール。これにより、コレクション内のいずれかのルールを true と評価すると、このルールが true と評価されます。

<OutlookRenderTypeRule> (RibbonDiffXml)

リボン要素を表示する必要があるかどうかを判断するために、フォーム アイテムまたはリスト アイテムが Web ページとして表示されるか、ネイティブに Outlook に表示されるかを検出するルール。

<OutlookVersionRule> (RibbonDiffXml)

Microsoft Office Outlook Client のバージョンを検出するルール。

<PageRule> (RibbonDiffXml)

現在のページのアドレスを評価するルール。

<ReferencingAttributeRequiredRule> (RibbonDiffXml)

エンティティの参照元属性が必須かどうかを検出するルール。

<RelationshipTypeRule> (RibbonDiffXml)

特定の種類の正式なエンティティの関連付けが 2 つのエンティティ間に存在するかどうかを検出するルール。

<SkuRule> (RibbonDiffXml)

Microsoft Dynamics CRM のエディションを検出するルール。

<ValueRule> (RibbonDiffXml)

特定のフィールドの値を検出するルール。

親要素

Element Description

<DisplayRules> (RibbonDiffXml)

表示ルールのコレクションを格納します。

備考

The <DisplayRules> (RibbonDiffXml) element is used as a child of <RuleDefinitions> (RibbonDiffXml) and <CommandDefinition> (RibbonDiffXml). When the DisplayRule element is a grandchild of RuleDefinitions it defines a rule and supports a variety of child rule elements. When DisplayRule is a grandchild of CommandDefinition, it simply references the DisplayRule definition using the Id attribute.

要素情報

XPath

//RibbonDiffXml/CommandDefinitions/CommandDefinition/DisplayRules/DisplayRule |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule

Schema Name

  • DisplayRulesType/DisplayRule

  • ReferenceDisplayRuleType

Validation File

RibbonTypes.xsd

Can be Empty

When a grandchild of <CommandDefinition> (RibbonDiffXml)

関連項目

他のリソース

Ribbon XML reference
コマンドおよびリボンをカスタマイズする

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