ViewURLTop function
Syntax
ViewURLTop(URL [, new_window])
Description
Use the ViewURLTop function to exit the current context and navigate to the location specified by the URL parameter by always replacing the current window. Use the ViewURLTop function as an alternative to the either the ViewURL or the Transfer function to ensure that when the source component is being displayed within a fluid wrapper (that is, the source classic component is being displayed within a fluid activity guide, a master/detail component, an interactive grouplet, or a modeless window) that the entire current window is replaced with the new content.
Unlike ViewURL, ViewURLTop ignores the new_window parameter. ViewURLTop always exits the current context and completely replaces the current window.
This is a deferred execution command: the new content is displayed after any executing PeopleCode has run to completion.
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.
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 |
|
new_window |
Note: This parameter is ignored and has no effect. |
Returns
None.
Example
&contentURL = GenerateComponentContentURL(%Portal, %Node, MenuName.QE_FLUID_CR, %Market, Component.QE_CBACK_C1, Page.QE_CBACK_C1, "");
ViewURLTop(&contentURL);