cancel
Showing results for 
Search instead for 
Did you mean: 

Access current portal session through webdynpro

Former Member
0 Kudos

Hi ,

I need to pass values between two WebDynpro applications at runtime in the current session.

I want to know how to set attributes in current portal session in WebDynpro and to get the value of the attributes which we set?

If there is any other possibility to pass values between two applications in current session also please suggest.

PS: Points will be rewarded for helpful answers.

Best Wishes,

Idhaya R

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I think this class may be helpful for you

com.sap.tc.webdynpro.services.session.api.WDScopeUtil

API Link: http://help.sap.com/javadocs/nwce/current/wdr/index.html

In this class i think you can use put() for setting attribute

Regards,

Srinivasan Subbiah

Former Member
0 Kudos

Hi Srinivasan,

Please tell me how to define scope type in that method.I want the scope should be within the session.

If possible please give a code snippent.

Best Wishes,

Idhaya R

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I think the following blog would be useful for you.

It deals with sharing Session Context

/people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host

Regards,

Srinivasan Subbiah

Former Member
0 Kudos

Hi,

You can try using the following methods


WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, key, value)
	  WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, key)

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ayyaparaj,

Will this be restriced to current portal session alone?

I need the parameter to be session specific.

Best Wishes,

Idhaya R

former_member725224
Discoverer
0 Kudos

Hello!

Have you found out, how it works?

I'm currently facing the same problem.

Could you please give me a short explanation or example?

Thanks very much!

Anja