cancel
Showing results for 
Search instead for 
Did you mean: 

Personas: 2 flavor for the same transaction how to choose 1 automatically

former_member182659
Participant
0 Kudos

Hello,

I've build 2 different flavors for the same transaction (QM01) with scripting inside.

From a menu, I would like to have 2 button which jump to QM01 with a specific flavor.

I looked everywhere but can't find a way to put the selected flavor behind the menu button.

When I use the command Switch.idflavors, it's called before the QM01.

How to achieve to call the QM01 and then switch flavors automatically?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

do you mean this ?

session.startTransaction("QM01");

session.utils.changeFlavor("<Flavor-ID as String>");

Regards,

Florian

former_member182659
Participant
0 Kudos

Thanks,

It works fine.

Answers (1)

Answers (1)

Former Member
0 Kudos

It is not as simple as making the buttons script buttons, with the script calling QM01 and then switching the flavour to the one you want? Or am I misunderstanding the problem?

Steve.

former_member182659
Participant
0 Kudos

it's correct.

Do you know the correct of doing it?