Compartilhar via


<ValueRule> (RibbonDiffXml)

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

Uma regra que detecta o valor de um campo específico.

Sintaxe

<ValueRule 
 Default=["0" | "1" | "true" | "false"]
 Field="String" 
 InvertResult=["0" | "1" | "true" | "false"]
 Value="String" 
 />

Atributos e elementos

The following describes 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

Field

The name of the form attribute to check.

String

Required

InvertResult

Nega o valor de retorno da regra.

Boolean

Optional

Value

Especifica o valor a ser passado como um parâmetro.

String

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.

Comentários

For commands defined for subgrid for forms using the updated user experience, value rules cannot be used within display rules. Use this element within an <EnableRule> (RibbonDiffXml) to hide an element.

Informações do elemento

XPath

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

Schema Name

ValueRuleType

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.