PSoS is performed in a separate session, and just like other logged-in users, that session shares none of the global field contents or variables with your session.
You can pass a $ or $$ as a script parameter, but that does not create those variables in the server session; there you will have to get the values using Get ( ScriptParameter ).
Please note that a script parameter like $$var = xxx does not set and pass a variable; the passed parameter will be the result of the expression $$var = xxx, i.e. True or False – probably not what you intended.
Passing a Script Parameter is TEXT. It must be read by the calling script
Get ( ScriptParameter )
and then evaluated by it.
There are various ways of passing multiple parameters (JSON being the latest). Search the forum for alternative of passing the text parameter and getting values on the other side.
Sent from miPhone
Thank you, I cannot understand why it doesn't work before... !
What occurs if I have more than one variable to pass ?
See the post of Beverly's.
Sending the parameters:
list ( value1 ; value2...)
getting the parameters
set variable [ $value1 ; value : getvalue ( get ( scriptparameter ) ; 1 ) ]
listed values cannot be null (except for the last one) and cannot themselves contain returns. If that's an issue, there are other options.