Share via


<BoolParameter> (RibbonDiffXml)

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

Specifica un valore con un tipo di dati booleano che è possibile passare come parametro.

Sintassi

<BoolParameter
 Name="string"
 Value=["0" | "1" | "true" | "false"]
</ BoolParameter >

Attributi ed elementi

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

Attributi

Attribute Description Type Usage

Value

Specifica il valore da passare come parametro.

Boolean

Required

Name

Rappresenta il nome di un parametro stringa di query passato per il valore quando si utilizza un elemento URL.

The name of the Boolean value to pass when BoolParameter is used as a child of <Url> (RibbonDiffXml).

String

Required

Nota

This parameter is only available when BooleanParameter is a child of <Url> (RibbonDiffXml).

Elementi figlio

Questo elemento non presenta elementi figlio.

Elementi padre

Element Description

<JavaScriptFunction> (RibbonDiffXml)

Specifica un'azione tramite cui viene chiamata una funzione da una libreria JavaScript specifica.

<CustomRule> (RibbonDiffXml)

Specifica una regola utilizzata con una definizione EnableRule composta da un riferimento a una funzione in una libreria JavaScript.

<Url> (RibbonDiffXml)

Azione tramite cui viene aperta una pagina Web a un indirizzo specificato.

Esempio

This <Url> (RibbonDiffXml) action passes the Boolean value of ”false” with the name ”test” to a Web resource.

<Actions> <Url Address="$webresource:New_ShowParams.htm">  <BoolParameter Name="test"                 Value="false"/> </Url></Actions>

Informazioni elemento

XPath

//RibbonDiffXml/CommandDefinitions/CommandDefinition/Actions/JavaScriptFunction/BoolParameter |
//RibbonDiffXml/CommandDefinitions/CommandDefinition/Actions/Url/BoolParameter |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/CustomRule/BoolParameter |
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/OrRule/Or/CustomRule/BoolParameter |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/CustomRule/BoolParameter |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/OrRule/Or/CustomRule/BoolParameter

Schema Name

BoolParameterType or BoolNamedParameterType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

Vedere anche

Altre risorse

Personalizzare i comandi e la barra multifunzione
Ribbon XML reference

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