Share via


WebLink.url Method [AX 2012]

Creates a URL based on the specified Web and client menu items.

Syntax

public str url([boolean encodeUrl, boolean _useExternalUrl])

Run On

Called

Parameters

  • encodeUrl
    Type: boolean
    A Boolean value that indicates whether the link is HTML encoded; optional.
  • _useExternalUrl
    Type: boolean
    A Boolean value that indicates whether the URL should be external.

Return Value

Type: str
A String that represents the hypertext reference piece of an HTML link.

Exceptions

Exception Condition
Error

The Web session could not be found or the Web command that was provided is invalid.

Remarks

Only external URL is guaranteed to be of the absolute kind; otherwise, the URL could be of the relative kind.

See Also

Reference

WebLink Class