This content has been marked as final.
Show 3 replies
-
Re: Command-line variable setting not working
Miguel Angel Baeyens de Arce Jan 17, 2012 2:21 AM (in response to Angus Monro)Hi Angus,
The variables "x" and "y" must exist prior to the reload. Add them empty in the Settings menu, Variable Overview.
The script should use SET instead of LET, without need of concatenationwith the "&". The /v parameter does pass a value to a variable, but if this variable doesn't exist, it does not create it.
TRACE x = $(x); SET y = $(x)$(x); //LET y = '$(x)' & '$(x)'; // This will do as well, but seems more complex TRACE y = $(y);
Hope that helps.
Miguel
-
Command-line variable setting not working
Angus Monro Jan 18, 2012 4:55 PM (in response to Miguel Angel Baeyens de Arce )Well, how about that - you're right, Miguel! Thanks.
I hadn't expected that behaviour - in other contexts QlikView will quite happily create variables on the fly, so I'd expected that command-line variables would be created, ready to use. Seems a bit odd to me, really, but there you go - it's a QlikView thing!
Thanks again,
Angus.
-
Re: Command-line variable setting not working
Kevin Pinto Feb 8, 2013 3:53 PM (in response to Miguel Angel Baeyens de Arce )Thank you, this stumped me for a while
-