cancel
Showing results for 
Search instead for 
Did you mean: 

Is it "safe" to use session.startTransaction for SMEN?

former_member238607
Participant
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

Nicolas
Active Contributor

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

eedens
Participant
0 Kudos

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.

Answers (1)

Answers (1)

former_member238607
Participant
0 Kudos

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!