Compartilhar via


<FormStateRule> (RibbonDiffXml)

Aplica-se a: CRM 2016 on-prem, CRM Online

Especifica uma regra que pode detectar o estado do formulário.

Sintaxe

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

Atributos e elementos

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

Atributos

Attribute Description Type Usage

Default

Define o valor de retorno padrão da regra, caso o valor real não possa ser determinado.

Boolean

Optional

InvertResult

Nega o valor de retorno da regra.

Boolean

Optional

State

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

Elementos filho

Este elemento não tem elementos filho.

Elemento pai

Element Description

<DisplayRule> (RibbonDiffXml)

Especifica a definição de uma regra usada para exibir um elemento de Faixa de Opções ou uma referência a uma DisplayRule em uma definição de comando.

<EnableRule> (RibbonDiffXml)

Especifica a definição de uma regra usada para habilitar ou desabilitar um elemento de Faixa de Opções ou uma referência a uma EnableRule em uma definição de comando.

<Or> (RibbonDiffXml)

Especifica um conjunto de regras que deve ser avaliado em conjunto.

Informações do 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

Consulte também

Outros recursos

Ribbon XML reference
Personalizar os comandos e a faixa de opções

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