Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
QFanatic
Creator
Creator

Extract Filename in Reload

hi

I have inherited a model that does the following:

Table:

load *

from \\server\location\myfile*.qvd(qvd);

How do I 'catch' the actual QVD's name (e.g. myfile123.qvd), because currently, I cannot see what files are reloaded in this statement.

All help appreciated.

 

Labels (1)
2 Solutions

Accepted Solutions
edwin
Master II
Master II

you need to loop through each QVD.

look at this https://community.qlik.com/t5/QlikView-App-Development/Reading-qvds-in-loop/m-p/852816

in your loop expression (what he used was File), $(File) will be your full file name, just parse it.

View solution in original post

Brett_Bleess
Former Employee
Former Employee

Have a look at the following Design Blog post, may be the piece you are missing, I think.

https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.

View solution in original post

4 Replies
edwin
Master II
Master II

you need to loop through each QVD.

look at this https://community.qlik.com/t5/QlikView-App-Development/Reading-qvds-in-loop/m-p/852816

in your loop expression (what he used was File), $(File) will be your full file name, just parse it.

QFanatic
Creator
Creator
Author

thanks Edwin.

If all the QVD's in the Filelist have exactly the same structure, this loop will create One Table, as they would automatically concatenate?

Brett_Bleess
Former Employee
Former Employee

Have a look at the following Design Blog post, may be the piece you are missing, I think.

https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
QFanatic
Creator
Creator
Author

Thank you.