Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get Web Dynpro iView pcd url from Web Dynpro application?

Hi, SDN Fellows.

I am doing a relative navigation from one Web Dynpro iView to another Web Dynpro iView, the code as following:

String [] path = {"workset1","pageB"};
String baseurl = "ROLES://portal_content/folder1/folder2/worktset1/pageA";
	WDPortalNavigation.navigateRelative(baseurl,2,path,"",WDPortalNavigationMode.SHOW_INPLACE,(String)"",(String)"",WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,"MyPageA","","MyParameter=paraA");

My problem is at the baseurl, as I don't want to hard code the baseurl path at the Web Dynpro application, as these two pages can be assigned to different roles.

So, what I want to do is to write a line of code to get the current Web Dynpro iview pcd url, say: "pcd:portal_content/folder1/folder2/worktset1/pageA", then replace the "pcd:" to "ROLES://" to form the right iview role url parameter.

I can do this every easily with the EPCF framework if using JSPDynpage (but now Web Dynpro does not support Java Script), as following:

parent.pageSupport.getIvuId(self);

I believe I can achieve the same thing with the Page Builder API or something like PCD Service in Web Dynpro too.

Can anyone advise me how to achieve this?

Thanks.

Kent

Former Member
Not what you were looking for? View more on this topic or Ask a question