<Url> (RibbonDiffXml)

应用到: CRM 2015 on-prem, CRM Online

一个操作,用于打开位于指定地址的网页。

语法

<Url 
 Address="String"
 PassParams=["0" | "1" | "true" | "false"]
 WinMode="Integer"
 WinParams="String" 
>
 <BoolParameter/>
 <CrmParameter/>
 <DecimalParameter/>
 <IntParameter/>
 <StringParameter/>
</Url>

属性和元素

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

属性

Attribute Description Type Usage

Address

要打开的页的地址。此值必须表示统一资源标识符 (URI)。它可以是页的绝对路径或相对路径。

String

Required

PassParams

Specifies whether information about the record and language context are passed to the URL.

Boolean

Optional

WinMode

Specifies the window mode. See Remarks.

Valid values:

 

Value Description

0

Window [Default]

1

Modal Dialog

2

Modeless Dialog

Enumeration

Optional

WinParams

Specifies the parameters to be passed to the window. The format of this parameter is different depending on the value of the WinMode parameter.

String

Optional

子元素

Element Description

<BoolParameter> (RibbonDiffXml)

指定 Boolean 数据类型的值,该值可作为参数传递。

<CrmParameter> (RibbonDiffXml)

表示从 Microsoft Dynamics CRM 应用程序中检索的数据,该数据可作为参数传递。

<DecimalParameter> (RibbonDiffXml)

指定 Decimal 数据类型的值,该值可作为参数传递。

<IntParameter> (RibbonDiffXml)

指定 Integer 数据类型的值,该值可作为参数传递。

<StringParameter> (RibbonDiffXml)

指定 String 数据类型的值,该值可作为参数传递。

父元素

Element Description

<Actions> (RibbonDiffXml)

指定命令将执行的操作。

备注

For WinMode = 0, the window.open method is used. For more information, see the open Method topic in the MSDN Library.

For WinMode = 1 (modal dialog), window.showModalDialog method is used. For more information, see the showModalDialog Method topic in the MSDN Library.

For WinMode = 2 (modeless dialog), the window.showModelessDialog method is used. For more information, see the showModelessDialog Method topic in the MSDN Library.

备注

Do not use this action to open entity forms. Use the <JavaScriptFunction> (RibbonDiffXml) with a function that uses Xrm.Utility.openEntityForm instead.

元素信息

XPath

//RibbonDiffXml/CommandDefinitions/CommandDefinition/Actions/Url

Schema Name

UrlType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

另请参阅

其他资源

Ribbon XML reference
自定义命令和功能区

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