Skip to Content
author's profile photo Former Member
Former Member

How can i access session parameters with Java/WebDynpro

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=pcd:pcdpathtoapp&iview_mode=default&sap-wd-renderMode=print&sap-wd-cltwndid=WID1231409735993&sap-wd-cltwndid-print=WID1231409735993&sap-wd-pb-ext-sid=R6lSVTeCYQEphXmnM3rpSA 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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2009 at 06:36 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2009 at 06:34 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2009 at 06:24 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2009 at 11:18 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.