Skip to Content

Passing variables in Personas 3.0

Nov 10, 2017 at 03:01 PM


avatar image
Former Member

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:


Thanks in advance for any help or guidance,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Tamas Hoznek
Nov 10, 2017 at 07:33 PM

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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


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