Antoine_Sauteron_1266

Using ACTIVATE_UC_OBJECT with 'PASS_VALUES' parameter

Discussion created by Antoine_Sauteron_1266 on Aug 11, 2017
Latest reply on Aug 11, 2017 by Antoine_Sauteron_1266

This question has come up quite often, and people got confused because variables were not being passed as expected while usingACTIVATE_UC_OBJECTwith 'PASS_VALUES' parameter.

The bottom line is that 'PASS_VALUES' parameter will only work if :

  • variables also appear in the 'Variables & Prompts' tab of the calling object
  • or if they were defined using:PSET


Here is a short example with 2 scripts :

  • SCRI.STARTERstartsSCRI.ACTIVATEDand passes&MYVARIABLE#.
  • SCRI.ACTIVATEDthen displays this variable.


SCRI.STARTER

a) With a Promptset

:SET &START# = ACTIVATE_UC_OBJECT(SCRI.ACTIVATED,,,,,PASS_VALUES)
jvsej92qov6u.png


b) With :PSET

:PSET &MYVARIABLE# = '12345'
:SET &START# = ACTIVATE_UC_OBJECT(SCRI.ACTIVATED,,,,,PASS_VALUES)


SCRI.ACTIVATED

:P My variable is &MYVARIABLE#

Result:
tvrr9hbwdpev.png

Best regards,
Antoine

Outcomes