<FormStateRule> (RibbonDiffXml)

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

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

構文

<FormStateRule 
 Default=["0" | "1" | "true" | "false"] 
 InvertResult=["0" | "1" | "true" | "false"] 
 State=["Create" | "Existing" | "ReadOnly"  | "Disabled"  | "BulkEdit"]
/>

属性と要素

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

属性

Attribute Description Type Usage

Default

実際の値を特定できない場合のルールの既定の戻り値を設定します。

Boolean

Optional

InvertResult

ルールの戻り値を反転します。

Boolean

Optional

State

Describes the type of form. These correspond to the values returned by the Xrm.Page.ui (クライアント側の参照).getFormType method.

Valid values:

 

Value Description

Create

Used before a record is saved.

Existing

Used after a record is saved and the user has access to edit it.

ReadOnly

Used to display a record that the user cannot edit.

Disabled

Used when the record is inactive and cannot be edited.

BulkEdit

Used when many records are updated at once.

Enumeration

Required

下位要素

この要素には子要素はありません。

親要素

Element Description

<DisplayRule> (RibbonDiffXml)

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

<EnableRule> (RibbonDiffXml)

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

<Or> (RibbonDiffXml)

一緒に評価する必要のある一連のルールを指定します。

要素情報

XPath

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

Schema Name

FormStateRuleType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

関連項目

他のリソース

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

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