Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Reading qvds in loop

Hi All,

I want to load all qvds from specific folder in loop .i have tried it using * .Its working good.

But i want to load it in loop using for and next .

Suggestions are appreciated

Thanks

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

FOR Each File in filelist (Folder & ' \*.QVD')

LOAD

*

FROM $(File) (QVD);

NEXT File

View solution in original post

7 Replies
petter
Partner - Champion III
Partner - Champion III

FOR Each File in filelist (Folder & ' \*.QVD')

LOAD

*

FROM $(File) (QVD);

NEXT File

alexandros17
Partner - Champion III
Partner - Champion III

let path_Alles = '..\..\myDir\myFile_*.xlsx';

for each File in filelist (path_Alles)
MyTable:

LOAD *
FROM $(File) (ooxml, embedded labels, table is Display);
next File

Let me know

Michiel_QV_Fan
Specialist
Specialist

  1. Generate a list of files (review Rob Wunderlich website for  list all files in folder solution)
  2. Use this list to load files one by one using variables and peek functions

Generated table with file:

Table:

FilePath,... , .... , .....

Load QVD's:

for i = 1 to noofrows(Table)-1

let file_to_load= peek('FilePath', $(i),'Table');

Data:

Load * $(from file_to_load) (qvd);

next i

Anonymous
Not applicable
Author

Hi

I tried your code but while execution of script it is exiting out of the application.

let path_Alles = 'QvApps Test\New Folder\Qvd Generator\*.qvd';

let File = 'QvApps Test\New Folder\Qvd Generator';

for each File in filelist ('$(path_Alles)')

MyTable:

LOAD *

FROM [QvApps Test\New Folder\Qvd Generator];

STORE MyTable into MyTable2.qvd(qvd);

next File

thanks

alexandros17
Partner - Champion III
Partner - Champion III

Try with this but verify if your path is correct ...

let path_Alles = 'QvApps Test\New Folder\Qvd Generator\*.qvd';

or each File in filelist (path_Alles)

MyTable:

LOAD *

FROM $(File)

next File

STORE MyTable into MyTable2.qvd(qvd);

Anonymous
Not applicable
Author

Hi ,

I think your logic is correct but my path is inccorrect and i had corrected .

Thanks for your time.

Anonymous
Not applicable
Author

Thanks to all for your suggestions