cancel
Showing results for 
Search instead for 
Did you mean: 

How can i access session parameters with Java/WebDynpro

Former Member
0 Kudos

Hello everybody,

i have seen that nice print function inside the enterprise Portal, which provide printing out of the portal. The printing view shows the current iView in the actual application state. Which is very nice.

The problem now is, that we use a custom facing portal and have disabeld the toolbar with the print function.

Now i have two questions:

First is there a possibility to directly include the print function to portal iViews?

Or where is the function included in? Does anyone know the par file where the code is stored?

Second i have seen, that the print view is beeing build via page builder with some options and session information. If i can get inside my webDynpro app the session parameters which are required i would be able to build the url by my own and reproduce the portal print function.

So does anybody know how to access the session parameters?

The link lookls like:

http://server:port/irj/servlet/prt/portal/prtroot/com.sap.portal.pagebuilder.IviewModeProxy?iview_id...BanyTmPeT4gasNhupUyCJw&IviewPrint=true

So my question is now, can i get the parameter:

sap-wd-cltwndid

sap-wd-pb-ext-sid

inside my webDynpro application via runtime???

Would be very nice and helpful if someone can help me!

kind regards

Fabian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

is it something that you want to debug at runtime and find out those values?

Please, follow this link->

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cb32c5-36a7-2910-2c9b-ba4a5bbdbb56|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cb32c5-36a7-2910-2c9b-ba4a5bbdbb56]

Also look at this. This might be of more use. it explains extracting such portal parameters:

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9]

-kunal kotak

Edited by: kunal kotak on Jan 12, 2009 12:16 PM

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello thank you for the helpful answers,

i solved the problem with the info from kunal.

For everyone as info you can access the URL Parameters with the following code:

String paramValue =
WDProtocolAdapter().
getProtocolAdapter().
getRequestObject().
getParameter(u201Cparamu201D); // Parametername

You can get all avalibel parameters with the method:

WDProtocolAdapter().
getProtocolAdapter().
getRequestObject().getParameterValues()

kind regards

fabian eidner

Edited by: Fabian Eidner on Jan 13, 2009 12:19 PM

Edited by: Fabian Eidner on Jan 14, 2009 12:53 PM

former_member192434
Active Contributor
0 Kudos

try to store the variable in Context And then Integrate WebDynpro application into Portal. Then from WD retrieve the variable stored in Webdynpro context

Former Member
0 Kudos

Hi,

For accessing session variable check the following links:

/message/12707#12707 [original link is broken]

/message/1491563#1491563 [original link is broken]

/message/140077#140077 [original link is broken]

May these can help you.

Regards.

Rajat