ViewURL
Mon 01 January 2018Syntax
ViewURL(URL_str | URL.URL_ID [, NewWindow])
Description
Use the ViewURL function to launch the default browser and navigate to the location specified by URL_str or URL . URL_ID . This is a deferred execution command: the browser is launched after any executing PeopleCode has run to completion. You can also specify whether the new page launches a new browser, or replaces the current page in the browser.
Note: This function does not issue any kind of warning to the user about losing data. Your application should verify that all data is saved before launching a new page.
The content specified by the URL is automatically wrapped by the portal template. If you do not want to wrap the content in the portal template, use the ViewContentURL function.
Important! While the ViewURL function can be used to launch a fluid component from a classic component, if the classic component will be included in a fluid activity guide or master/detail component, do not use ViewURL or RedirectURL. Use the Transfer function instead.
Parameters
Field or Control |
Definition |
---|---|
URL_str | URL. URL_ID |
Specify the location to where you want to navigate. You can specify either a URL string, or, a URL saved in the URL table, by specifying the reserved word URL followed by a dot and the URL Identifier. |
NewWindow |
Specify whether the new page is opened in the current browser, or launched in a new browser window. This parameter takes a Boolean value: True to launch a new browser, False to replace the existing page. The default value is False. |
Returns
None.