HYPERLINK Function
Passes a URL as an argument to an Internet browser, such as Windows Internet Explorer.
HYPERLINK(URL)
Parameters
- URL
Type: Text A URL that is passed to the Internet browser as an argument.
Remarks
The syntax or validity of the URL that is passed on to the browser is not checked. You can pass an empty string, which will open a browser window and load the URL that the user has defined as the home page.
If you use this function for an application that runs on the Microsoft Dynamics NAV Windows client, then the default Internet browser that is based on the setting in the system registry is used. If the browser is already running, then this instance will be reused. If you use this function for an application that runs on the Microsoft Dynamics NAV Web client, then a new browser window that uses the same browser application that is currently hosting the Microsoft Dynamics NAV Web client is opened.
The HYPERLINK function works with different protocols and file types. These protocols and file types are listed in the fin.stx file. This means that different versions of Microsoft Dynamics NAV can use different protocols and file types.
The default location of the fin.stx is <installation drive>\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\.
The HYPERLINK function does not work on Microsoft Dynamics NAV Application Server.
Example
To add a command button that starts the default Internet browser and directs it to the Microsoft site on the World Wide Web, you can add the code in the following example to the OnPush Trigger of the command button.
HYPERLINK('https://www.microsoft.com');
See Also
Reference
APPLICATIONPATH Function
GUIALLOWED Function
SLEEP Function
TEMPORARYPATH Function