Skip to Content

Personas - Pass values from one flavor to other


Hi experts.

We are attempting to pass values from flavor 1 to flavor 2 through variables and use them at Flavor 2.

In detail, in flavor 1 value from input box 1 is moved to a variable.

Then we switch to flavor 2 using session.utils.changeflavor(flavor ID) successfully.

Here in flavor 2, we are attempting to access the variable that was passed from flavor 1, with no success.

The question is it possible to pass values from one flavor to another?

If so, let us know the steps to be followed.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 09, 2015 at 08:12 AM

    Variables you create in a script are local to that script, not just to that flavour. You can't access them in another script in the same flavour. To store values so that they are accessible globally use the session.utils.put an session.utils.get methods.

    Steve.

    Add comment
    10|10000 characters needed characters exceeded