cancel
Showing results for 
Search instead for 
Did you mean: 

Navigate to another page in the same window problem

former_member188498
Active Participant
0 Kudos

Hi,

I have a problem with the following scenario:

When a user clicks on a link in a portal, a web dynpro page opens in new window with the url similar to this

http://server:port/irj/servlet/prt/portal/prtmode/runtime/prtroot/pcd!3aportal_content!2fCompany!2fI...

So basically in this way we only want to display this single application, without portal top level navigation, inner page, masthead etc.

The problem occurs when we try to implement navigation from this web dynpro application to another page

When we use WDPortalNavigation a new window opens but we want the navigation to happen in the same window.

We cannot use LinkToUrl control with _self parameter because its not supported.

We also cannot use HttpServletResponse by getting it through com.sap.tc.webdynpro.services.sal.adapter.core.IWDWebContextAdapter class.

We also cannot use ExitPlugs because the error occurs with the message that the ExitPlugs cannot be used in portal.

Basically I need a redirect to another page. Any ideas how to solve this problem?

Regards,

Ladislav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

try this


if (WDPortalUtils.isRunningInPortal()) {
			WDClientUser.forceLogoffClientUser(urlredirect);
		} else {
			wdThis.wdGetSetpwdWindowInterfaceViewController().wdFirePlugPlugExit(urlredirect);
		}

former_member188498
Active Participant
0 Kudos

Hi,

thanks, but the user has to be logged in the portal.

Regards,

Ladislav

Answers (2)

Answers (2)

former_member188498
Active Participant
0 Kudos

Closing this thread. Solved a problem by displaying it on the same page

Former Member
0 Kudos

Hi ,

I also have the same requirement. Can you please tell me , how did you solve this problem.

Thanks in Advance

Former Member
0 Kudos

Hi ,

I also have the same requirement. Can you please tell me , how did you solve this problem.

Thanks in Advance

Former Member
0 Kudos

Hi,

where is that link? Is it in some html page or webdynpro view?

Also paste the code what you wrote to navigate to webdynpro application.

Regards,

Jaya.

Edited by: VJR on Jul 2, 2009 4:38 PM

former_member188498
Active Participant
0 Kudos

Hi,

the link which initially opens this web dynpro application page is contained in a html page.

Here is the code:

WDPortalNavigation.navigateAbsolute(
  "ROLES://portal_content/Company/Intranet_v2/Applications/ZZ/Pages/PurchaseRequests", 
  WDPortalNavigationMode.SHOW_INPLACE,
  WDPortalNavigationHistoryMode.NO_HISTORY,
  "requestNr="+wdContext.currentContextElement().getRequestNr());

Regards,

Ladislav

Edited by: Ladislav Pomezny on Jul 2, 2009 1:23 PM

Former Member
0 Kudos

Hi

Please Check by attaching the source ivew to a Role and in turn to the User and then check

Dont Click Preview and see ,Your problem will be solved once every thing is done and given to the user

Thanks & Regards

Noel

former_member188498
Active Participant
0 Kudos

Hi,

the users already have this role.

Best Regards,

Ladislav