Skip to Content
0
Former Member
Dec 03, 2009 at 05:27 PM

How to get IPortalComponentRequest from a WebDynpro application

35 Views

I want to generate an iView URL using

com.sapportals.portal.sapapplication.urlgenerator.IIViewUrlGenerator.createIViewURL(...), but the first parameter is the IPortalComponentRequest object.

Is there an easy way to get the IPortalComponentRequest object from my WebDynpro application, which is running from EP 7 SP17?

Is there another API I should be using to create iView URLs? I need to generate a dynamic URL to a WebGUI transaction iView, passing dynamic parametes in the DynamicParameter property.

The method mentioned about does exactly this, but with the downside of requiring the IPortalComponentRequest object.

I could create a WebGui transaction iview in the PCD, and generate the URL manually myself but its a bit of a messy way of doing it.

Surely there is a way to obtain IPortalComponentRequest as it is required by a lot of the old Portal API?

I found a few postings about using WDWebContextAdapter.getWebContextAdapter(); but all seem to be unsuccessful.

Any ideas greatly appreciated!

Cheers,

Steve