cancel
Showing results for 
Search instead for 
Did you mean: 

WDPortalNavigation with portal not running on WD server

ChrisPaine
Active Contributor
0 Kudos

Hello,

I am trying to get my application to close itself and replace itself with a non-WebDynpro iView.

I have been attempting to use:

WDPortalNavigation.navigateAbsolute("ROLES://portal_content/contentlib/corporate/mss/iviews/test_iview",
			WDPortalNavigationMode.SHOW_INPLACE,
			String) null,
			(String) null,
		WDPortalNavigationHistoryMode.NO_HISTORY,
			(String) null,
			(String) null,
			(String) null);

It seems to happily end the application (clicking on anything results in a "The Web Dynpro Application 'PortalNavTest' has expired" )- but nothing is loaded in its place.

from reading the various posts in the forum, and the portal nav tutorial, I think that this should work, however I do have a landscape difference that I believe may be causing me a problem. The server which my wd app is running on is different to the server which my portal is running on. I'm not sure how my app would "know" what URL to use to fetch the new iview. Running on a different server does not cause me any issues with running the app normally, however, it does seem to cause a problem with portal navigation.

in the help <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm">SAP Help - Calling Portal Services</a>

there is a mention of being "service factory provides a conduit to portal services to ensure that the proper service is called, even in cases when the Web Dynpro application and the portal are running on different machines". but on the same page of the help it says:

"A portal service can be called only when the portal platform and the Web Dynpro application are running on the same machine.

It is recommended not to use your Web Dynpro-based portal content in a global or federated portal scenario"

To summarise, I'm confused! Can I use portal navigation in my application when it is not running on the portal server? Do I have to use Dynamic iViews in the page service? Can I even use the IWDPageService in NW04 (I can't seem to find the jar with this interface/class anywhere) and it's not mentioned in the NW04 help.. ?

Am I just better off just opening the new iview in a new window in the application by passing in the absolute URL - ie - the portal iview URL?

Any suggestions most welcome.

Thanks,

Chris

Accepted Solutions (0)

Answers (2)

Answers (2)

ChrisPaine
Active Contributor
0 Kudos

Never found out why this wouldn't work, my guess is that the portal must be running on the same J2EE as the web dynpro app. Which is fine for development, but when you start looking at a global federated portal, then this isn't so good.

Anyway - I found a solution, so I'll close the question...

Cheers.

Chris

Former Member
0 Kudos

Hi Chris,

I have an issue on the same lines and just happened to stumble upon this thread. Can you please share how you resolved the problem?

My Scenario - Here I am doing an absolute navigation to a web dynpro page which works fine when I am accessing the application within the producer. Now on accessing the application from consumer portal it opens up the page in a new window the url of which is that of producer. I have opened a thread for this. If you could reply there that is really appreciated.

Thanks,

KN.

ChrisPaine
Active Contributor
0 Kudos

As an alternative/workaround I'm currently implementing some code to launch the new portal iview via the exit plug of the application. I have some tables in R/3 which can tell me the URL of the portal and the location of the iview within the portal, so I can generate the correct URL - but would be nicer to use something a bit more standard.

Of course I would be on NW04 SP18 which has a bug in that particular area... so currently patching my engine with the Hot Fix... will let you know how it goes.

Cheers,

Chris

ChrisPaine
Active Contributor
0 Kudos

My workaround works - I can specify the exit URL and start the non WD iview in that manner.

However, I would still be very interested to know if it is possible to call an iView/Portal Page in some more standard manner.

Cheers,

Chris