avatar image
Former Member

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";

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:


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?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

Skip to Content