ViewContentURL function
Syntax
ViewContentURL(URL)
Description
Use the ViewContentURL function to open a new browser window and navigate to the location specified by the URL parameter.
Important:
Use the ViewContentURL function in classic applications only. See Fluid User Interface Developer’s Guide: Transfer and Modal Functions for more information on which functions are available for which purposes.
The content specified by the URL is not wrapped by the portal template. Therefore, you can use this function when you want to display third-party content. If you want to wrap the content in the portal template, use the ViewURL function.
This is a deferred execution command: the browser is launched after any executing PeopleCode has run to completion. This function automatically launches a new browser window.
Parameters
| Parameter | Description |
|---|---|
|
URL |
Specify the location to navigate to. You can specify the URL either as a string value or as a URL saved in the URL table using the following format: URL. URL_ID |
Returns
None.
Example
If &MyPage Then
ViewURL(URL.MYPAGE);
Else
ViewContentURL("http://www.oracle.com");
End-If;
Considerations for Opening Local Files
Note:
Due to restrictions inherent in certain browsers, you cannot use ViewContentURL to open a file on a local file system. See the PeopleTools Browser Compatibility Guide (Oracle Support Document 704492.1) on My Oracle Support for more information.
For browsers that do support opening a file on a local file system, you must use a URL style path (file://path_name) instead of a UNC style path (\\path_name). For example:
ViewContentURL("file://PT-NFS01/PSUSERWS/temp/TVN/81X-PATCHES.TXT");