Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld online is next week! REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
wrsjar_qlik
Contributor
Contributor

How to assign list value to a variable in Qlikview script?

I have a directory which contains sub directory  'a',  'b', 'c', 'd', 'e' ....  I want load data conditionally, for example:

set vDirList = ['a', 'b', 'c'];  //Only load sub directory 'a', 'b', 'c';

//set vDirList = []; //Load all sub directory

if len($(vDirlist )) = 0  then //for all sub directory

    let vDirs = DirList('D:\*');

else

    let vDirs = $(vDirList);

endif

for each dir in $(vDirs)

    do load ...

next dir;

 

How to write the script?

Labels (1)
  • Other

1 Reply