Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

amit_saini
Honored Contributor III

Script Help ???

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);

$(Include=..\2_scaq_datamodel_script.qvs)

EXIT Script;

Here in this script instead of reading all plants (Set vPlant = '*'Smiley Wink , 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.

Thanks,

AS

4 Replies
MVP
MVP

Re: Script Help ???

Where are you using the variable vPlant ? How did you try the for each statement?

amit_saini
Honored Contributor III

Re: Script Help ???

I'm using vPlant in my include statement file "2_scaq_datamodel_script.qvs"

Thanks,

AS

amit_saini
Honored Contributor III

Re: Script Help ???

This file 2_scaq_datamodel_script.qvs carrying common script for all plants that's why I m calling this an include one.

Thanks,

AS

amit_saini
Honored Contributor III

Re: Script Help ???

Any Suggestion????

Thanks,

AS

Community Browser