cancel
Showing results for 
Search instead for 
Did you mean: 

How get current PORTAL page's ID in Webdynpro?

Former Member
0 Kudos

How get current PORTAL page's ID in Webdynpro?

Is there good idea?

Webdynpro app in integrationed portal. I want in Webdynpro get Portal page's ID.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Who have a better idea?

Former Member
0 Kudos

1. Add parameter to your iView (or Page) on Portal : iviewUrl=<IView.ID[url_ENCODE]> (you can use any name for parameter - not necessary iviewUrl)

2. Add parameter 'iviewUrl' to InterfaceView on which wd application for iView was built

now your wd application will recive iview id in parameter 'iviewUrl'. To get pages id - try to specify <Page.ID[url_ENCODE]>

you can use also <Portal.Version[url_ENCODE]>, <Request.Locale>, <System.Access.WAS.protocol>, <System.Access.WAS.hostname>, <WebDynproNamespace>, <WebDynproApplication> etc.

Former Member
0 Kudos

Who have a idea?

Former Member
0 Kudos

Hi

You can get the current Application ID form protal try this

String appname=String.valueOf(wdControllerAPI.getApplication().getName());

Kind Regards

Mukesh

Former Member
0 Kudos

Hi,

I m not sure whether u can do this directly in webdynpro. But u can do this in a portal component and then this component can be exposed as a portal service. While exposing have a return type for the method that gives the portal page id.

Then this service can be made used in webdynpro to get the portal page's id.

- Nagarajan.