Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
can anyone tell me if it is possible to load (by means of binary statement) a variable .qvw file?
Something like
Binary $(var);
where 'var' value is specified in qv.exe command line.
Thanks a lot!
You can invoke QV through a command line and pass the name and value of a variable (declared in the document) using the '/V' switch. For example
/VvExport=1
will pass a value of 1 to be assigned to the variable vExport in the document.
Regards,
Gordon
Hi Gordon,
thanks for your replay.
It's exactly what I did, but it's not working.It seem to me that maybe an order in the switch list, for the command line.
This is my code
Binary "$(reg)";
..............................
Let reg = $(VAR);
C:\Program Files\QlikView\Qv.exe /r C:\qlik\myDoc.qvw /vVAR='C:\qlik\myETL.qvw '
Have you any suggestion?
Thanks!
Roberta,
Try removing the quotes from both the command string and also from the binary statement.
Regards,
Gordon
Hi,
it's working fine with me (without qoutes in the binary statement as Gordon says). But first you have to add the variable manually to your myDoc.qvw- The "Let reg = $(VAR)" is not enough, moreover, it's useless here, I'd say.
Rgds,
Joachim