Convertigo Public Knowledge base

Call a variable from CustomAction component

You can not access data values directly from a Call Sequence component in a CustomAction.

You can:

  • Save the Call Sequence output data to a SetGlobal component

  • Add a Variable to the CustomAction and source it from the Call Sequence output data

SetGlobal component:

Use a SetGlobal component as a child of the Call Sequence component, give it a variable name and set its value to parent.out

To access the global value in your CustomAction:

page.global.<variable_name> or page.global["<variable_name>"]

Pass Variable to a CustomAction:

You can pass variables to custom actions. When you use a custom action, you can add Variable to the custom action. The variable value can be accessed within the custom action by a :

vars.<variable_name>

Or

vars['<variable_name>']

 

(c) Convertigo 2023 https://www.convertigo.com