cancel
Showing results for 
Search instead for 
Did you mean: 

setTransientAttribute & getTransientAttribut

david_fryda2
Participant
0 Kudos

Hi everyone,

I created 2 iViews : one is a sender and the second is the receiver.

I try to send a simple String from the Sender to the Receiver.

I get empty String as result.

Is there something special to put as namespace ?

Thanks for the help.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I am not sure in the case of iViews but you can go through the following

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/inter... in web dynpro.pdf

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/porta... integration of web dynpro applications.pdf

Regards, Anilkumar

Former Member
0 Kudos

Why can't do the same through context.

In the first set the value and in the second view read the context by doing the context mapping !!!

Regards, Anilkumar

david_fryda2
Participant
0 Kudos

Hi Anilkumar,

just to remind you -

I'm not using two different views.

I'm using two different iViews that r on different applications and different components.

do you know how to do context mapping between different iViews?

thanks, David.

Former Member
0 Kudos

Can you post your code?

Armin

david_fryda2
Participant
0 Kudos

Hi Armin,

here is the code:

in one iView:

IWDClientUser clientUser = WDClientUser.forceloggedinClientUser();

com.sap.security.api.IUser sapUser =

ClientUser.getSAPUser();

sapUser.setTransientAttribute("here I enter the Namespace of the iview","currOrder","F000000168");

in a second iView:

IWDClientUser clientUser = WDClientUser.forceloggedinClientUser();

com.sap.security.api.IUser sapUser =

ClientUser.getSAPUser();

String currOrder = new String();

currOrder = (String)sapUser.getTransientAttribute("here I enter the same nameSpace as in the prev iView,"currOrder");

thanks again, David