cancel
Showing results for 
Search instead for 
Did you mean: 

Passing variables in Personas 3.0

Former Member
0 Kudos

I've tried all the examples I have seen regarding passing variables from one Personas 3.0 Web GUI transaction screen to another but can't get anything to work.

I have set the following variable on screen one with the onEnter event:

var sold_to_party = session.findById("wnd[0]/usr/ctxtPersonas_15101749592842").text;

I'm trying to populate the following text box on the next transaction screen with the value from screen one but nothing works:

session.findById("wnd[0]/usr/subSUBSCREEN_HEADER:SAPMV45A:4021/subPART-SUB:SAPMV45A:4701/ctxtKUAGV-KUNNR").text

Thanks in advance for any help or guidance,

mike

Accepted Solutions (0)

Answers (1)

Answers (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert

Is the script navigating to the other transaction the same where you declared variable sold_to_party?

If not, then you have store its value in the session store using session.utils.put and refer to it in the other script with session.utils.get

Former Member
0 Kudos

Thanks for the response. I have it working now and the script not navigating to the next screen was the problem. With the session.utils feature can I save variables/objects dynamically or must they be hard coded in as text? Meaning is there a way to store a text box value a user populates on a screen and retrieve the value on a different screen?

session.utils.put("key","value") can value be populated dynamically with a screen event

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

What you described should be possible. This is the way to pass values between screens within a session.