Share via


<FormStateRule> (RibbonDiffXml)

Si applica a: CRM 2016 on-prem, CRM Online

Specifica una regola tramite cui è possibile rilevare lo stato del modulo.

Sintassi

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

Attributi ed elementi

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

Attributi

Attribute Description Type Usage

Default

Imposta il valore restituito predefinito per la regola se non è possibile determinare il valore effettivo.

Boolean

Optional

InvertResult

Nega il valore restituito della regola.

Boolean

Optional

State

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

Elementi figlio

Questo elemento non presenta elementi figlio.

Elementi padre

Element Description

<DisplayRule> (RibbonDiffXml)

Specifica la definizione di una regola utilizzata per visualizzare un elemento della barra multifunzione o un riferimento a un elemento DisplayRule da una definizione di comando.

<EnableRule> (RibbonDiffXml)

Specifica la definizione di una regola utilizzata per abilitare o disabilitare un elemento della barra multifunzione o un riferimento a un elemento EnableRule da una definizione di comando.

<Or> (RibbonDiffXml)

Specifica un set di regole che è necessario valutare insieme.

Informazioni elemento

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

Vedere anche

Altre risorse

Ribbon XML reference
Personalizzare i comandi e la barra multifunzione

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