Share via


<CustomRule> (RibbonDiffXml)

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

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

構文

<CustomRule
 Default=["0" | "1" | "true" | "false"]
 FunctionName="String"
 InvertResult=["0" | "1" | "true" | "false"]
 Library="String" >
 <BoolParameter />
 <CrmParameter />
 <DecimalParameter />
 <StringParameter />
</CustomRule>

属性と要素

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

属性

Attribute Description Type Usage

Default

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

Boolean

Optional

FunctionName

The name of a JavaScript function located in the library designated by the Library attribute.

FunctionName must follow this naming convention:

  • The first character must be a letter, an underscore ("_") character, or a dollar ("$") symbol.

  • The remaining characters may be any combination of letters, underscore characters, dollar symbols, numbers or periods.

String

Required

InvertResult

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

Boolean

Optional

Library

The path to a .js file containing the function named in the FunctionName attribute.

String

Required

下位要素

Element Description

<BoolParameter> (RibbonDiffXml)

パラメーターとして渡すことのできるブール データ型の値を指定します。

<CrmParameter> (RibbonDiffXml)

Microsoft Dynamics CRM アプリケーションから取得されたデータを表します。このデータはパラメーターとして渡すことができます。

<DecimalParameter> (RibbonDiffXml)

パラメーターとして渡すことのできる 10 進データ型の値を指定します。

<IntParameter> (RibbonDiffXml)

パラメーターとして渡すことのできる整数データ型の値を指定します。

<StringParameter> (RibbonDiffXml)

パラメーターとして渡すことのできる文字列データ型の値を指定します。

親要素

Element Description

<EnableRule> (RibbonDiffXml)

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

<Or> (RibbonDiffXml)

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

要素情報

XPath

//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/CustomRule |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/OrRule/Or/CustomRule

Schema Name

CustomRuleType

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.