<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)

指定布林資料類型、可做為參數傳遞的值。

<CrmParameter> (RibbonDiffXml)

代表從 Microsoft Dynamics CRM 應用程式擷取,可做為參數傳遞的資料。

<DecimalParameter> (RibbonDiffXml)

指定小數資料類型、可做為參數傳遞的值。

<IntParameter> (RibbonDiffXml)

指定整數資料類型、可做為參數傳遞的值。

<StringParameter> (RibbonDiffXml)

指定字串資料類型、可做為參數傳遞的值。

上層元素

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.