on 11-08-2018 2:35 PM
Hi,
We are running Personas 3.0 SP 7.
I have created a number of flavors, and they all have a "Home" button on them. I'm able to accomplish this with code like this:
while (session.info.transaction !="SMEN") { // Click the 'Exit' button until we reach SMEN.
session.findById("wnd[0]/tbar[0]/btn[15]").press();
}
This works for the most part, but it has caused issues on occasion depending on the return path, which can be fairly complicated as I add additional flavors (example: SMEN to IW29 to IW23 to IW22 then return directly to SMEN).
When I first started working with Personas a couple years ago, I tried accomplishing a "Home" button by simply jumping to SMEN. This worked sometimes but caused issues others. If I remember correctly, I read something that said SMEN isn't really like other transactions; something about always running in the background I believe.
I'm wondering if session.startTransaction("SMEN") would be a save command to use?
Any thoughts or other ideas on this would be appreciated.
Thanks for your help!
Hello,
Instead of using startTransaction("SMEN"), it is recommended to use:
//Back to SMEN
session.findById("wnd[0]/tbar[0]/okcd").text = "/n";
session.findById("wnd[0]").sendVKey(0);
Check note 2489934 for more information.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We'll probably need one of the developers to chime in, but using :
session.startTransaction("");
seems to work in a different way than calling:
session.startTransaction("SMEN");
since it doesn't produce the same errors. I hadn't seen 2489934 before, so I've started testing to see if I can find a difference.
That's exactly what I need - much more elegant than looping through screens.
And yes, that note describes the error I was getting early on when I tried relaunching SMEN.
Thanks for the help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.