Discussion Board for collaboration on QlikView Scripting.
Hi Folks ,
I'm having script like below:
Set vPlant = '*'; (For reading all the plants)
Set vQVD = '..\..\QV_QVD';
Set vSRC = '..\..\QV_SRC';
Set vQVDGlobal = '..\..\QV_QVD';
Set vQVDGlobal = '..\..\QV_QVD\Global';
execute cmd.exe /C copy $(vQVD)\*.* $(vQVDGlobal)\*.* /y;
set vQVD = $(vQVDGlobal);
Here in this script instead of reading all plants (Set vPlant = '*' , I want to read only few of them.
I tried with this:
for each vPlant in 'Plant1','Plant2' but it's not working.
Any suggestion how to achieve this.
Where are you using the variable vPlant ? How did you try the for each statement?
I'm using vPlant in my include statement file "2_scaq_datamodel_script.qvs"
This file 2_scaq_datamodel_script.qvs carrying common script for all plants that's why I m calling this an include one.