Skip to Content

How to return to the launching flavor when exiting launched flavor?

This is for Personas 3.0 SP07.

I have a main Flavor with couple of script buttons and data entry fields. When script button is pushed, the requirement is to display second flavor in the same tab. I used session.utils.changeFlavor() to do it. Because session.utils.openUrl(url) opens the url in a new tab. Although session.callTransaction(tCode) allows to return to previous TCode, but I am not able to use it because I have Flavor and not Tcode.

I am able to use script to accomplish it by saving the main flavor url before switching to second flavor and retrieving it in a script via OnBeforeRefresh screen event to detect EVENT_VCOMP for F3, F12 and F15 in the second flavor. I used = <my saved url> to reload my main flavor. But the data in the entry fields of main flavor are gone. I believe this issue can be resolved by switching to main flavor instead of reloading the main flavor. Of course, I need to save all data in the entry fields and retrieve them back in the OnLoad event of the main flavor. I am wondering if there's any performance impact by switching back and forth between main flavor and second flavor. Also I am just wondering if there is a better way to handle this, such as Transaction Variants with Personas Flavor, which I do not know how to do it.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 14, 2018 at 08:28 PM tells you the current flavor's ID. You can save this in the session store before switching to another flavor and set it back whenever you want to return to the "main" flavor.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.