Del via


<FormStateRule> (RibbonDiffXml)

Gælder for: CRM 2015 on-prem, CRM Online

Angiver en regel, der kan registrere formularens tilstand.

Syntaks

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

Attributter og elementer

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

Attributter

Attribute Description Type Usage

Default

Angiver standardreturværdien for reglen, hvis den faktiske værdi ikke kan bestemmes.

Boolean

Optional

InvertResult

Gør reglens returværdi negativ.

Boolean

Optional

State

Describes the type of form. These correspond to the values returned by the Xrm.Page.ui (klientsidereference).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

Underordnede elementer

Dette element har ingen underordnede elementer.

Overordnede elementer

Element Description

<DisplayRule> (RibbonDiffXml)

Angiver enten definitionen på den regel, der bruges til at få vist et element på båndet, eller en reference til en DisplayRule fra en kommandodefinition.

<EnableRule> (RibbonDiffXml)

Angiver enten definitionen på en regel, der bruges til at aktivere eller deaktivere et element på båndet, eller en reference til en EnableRule fra en kommandodefinition.

<Or> (RibbonDiffXml)

Angiver et sæt regler, der skal evalueres samlet.

Elementoplysninger

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

Se også

Andre ressourcer

Ribbon XML reference
Tilpasse kommandoer og båndet

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