<EnableRule> (RibbonDiffXml)

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

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

注意

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

構文

<CommandDefinition>
 <EnableRules>
  <EnableRule Id="String" />
 </EnableRules>
</CommandDefinition>
<RuleDefinitions>
 <EnableRules >
  <EnableRule
   Id="String">
   <CommandClientTypeRule />
   <CrmClientTypeRule />
   <CrmOfflineAccessStateRule />
   <CrmOutlookClientTypeRule />
   <CustomRule />
   <EntityRule />
   <FormStateRule />
   <OrRule />
   <OutlookItemTrackingRule />
   <OutlookVersionRule />
   <PageRule />
   <RecordPrivilegeRule />
   <SelectionCountRule />
   <SkuRule />
   <ValueRule />
  </EnableRule>
 </EnableRules>
</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 an Enable Rule

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

String

Required

下位要素

Element Description

<CommandClientTypeRule> (RibbonDiffXml)

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

<CrmClientTypeRule> (RibbonDiffXml)

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

<CrmOfflineAccessStateRule> (RibbonDiffXml)

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

<CrmOutlookClientTypeRule> (RibbonDiffXml)

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

<CustomRule> (RibbonDiffXml)

JavaScript ライブラリ内の関数への参照で構成される EnableRule 定義で使用されるルールを指定します。

<EntityRule> (RibbonDiffXml)

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

<FormStateRule> (RibbonDiffXml)

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

<OrRule> (RibbonDiffXml)

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

<OutlookItemTrackingRule> (RibbonDiffXml)

リボン要素を有効にするための Microsoft Dynamics CRM でのアイテムの追跡が有効かどうかを検出するルール。

<OutlookVersionRule> (RibbonDiffXml)

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

<PageRule> (RibbonDiffXml)

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

<RecordPrivilegeRule> (RibbonDiffXml)

リボン要素を有効にするための特定のレコードに対するユーザーの特権を検出するルール。

<SelectionCountRule> (RibbonDiffXml)

グリッドで選択されているアイテム数を検出するルール。

<SkuRule> (RibbonDiffXml)

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

<ValueRule> (RibbonDiffXml)

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

親要素

Element Description

<EnableRules> (RibbonDiffXml)

有効化ルールのコレクションを格納します。

備考

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

要素情報

XPath

//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule |
//RibbonDiffXml/CommandDefinitions/CommandDefinition/EnableRules/EnableRule

Schema Name

  • ReferenceEnableRulesType/EnableRule

  • EnableRulesType/EnableRule

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.