Passes a URL as an argument to an Internet browser, such as Windows Internet Explorer.
- Type: TextA URL that is passed to the Internet browser as an argument.
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 or Microsoft Dynamics NAV SharePoint client, then a new browser window that uses the same browser application that is currently hosting the Microsoft Dynamics NAV Web client or Microsoft Dynamics NAV SharePoint 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\70\RoleTailored Client\.
The HYPERLINK function does not work on Microsoft Dynamics NAV Application Server.
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.