cancel
Showing results for 
Search instead for 
Did you mean: 

Passing values from portal iview to web dynpro application

Former Member
0 Kudos

Hi All,

Our requirement is to pass values from Portal web dnpro iview to the underlying web dynpro application.

The parameters which I want to pass is : iview id.

My question is that whether you have to pass the entire hardcoded PCD iview path in the application parameters or

is there any way by which we can get the ID dynamically.

In one of the SDN posts related to this..they have mentioned about iViewPath=<iView.id> in application parameter.

But when I use this method, I get '<iView.id>' as it is in the web dynpro application and not the actual iview id.

Please help me with this.

Regards,

Radhika

Accepted Solutions (0)

Answers (1)

Answers (1)

Qualiture
Active Contributor
0 Kudos

Hi,

Could you explain a bit more what you want to achieve?

First of all, you need to check whether the WebDynpro app is running in the portal using the WDPortalUtils.isRunningInPortal() method, since it can perfectly run outside the portal as well, and therefor has no knowledge of PCD locations whatsoever.

Secondly, the PageBuilder's CLient API (see http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b4/adbf40b87e0366e10000000a1550b0/frameset.htm ) has a javascript function to retrieve the iViewId. Since there's no Java equivalent, this makes me think the iView ID (which is relative to the user's roles, worksets and pages) is constructed at the client, and the WDJ app might have no knowledge about it

However, is someone can provide some more details or a solution, I'm happy to know about it as well

Best,

Robin van het Hof

Former Member
0 Kudos

Hi,

What we want to achieve here is we want to get the iview id dynamically by passing it through portal iview to underlying web dynpro.

The values will be passed using the iview's property application parameters and will be received by the web dynpro application in its onPlugDefault() method.

What should I write in the application parametrs to get the iview id instead of writing the hardcoded value of iview id into it.

Like for example right now I have given application parameter in the iview as 'iViewPath=<iView.id>'. This value i.e. <iView.id> is passed as it is to the wweb dynpro application. I want an expression by which I will get the actual iview path like

pcd:portal_content/users/...............

Regards,

Radhika