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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
herard_bertrand
Partner - Creator II
Partner - Creator II

Qlik Cloud, how to browse Qvd folders dynamically ?

Hello,

 

On Qlik Cloud, I have QVD files stored in subdirectories, themselves located in subdirectories of a data space. Is there a simple script loading syntax to dynamically browse this tree structure to retrieve certain QVDs? Thank you.

 

Best regards,

Labels (3)
1 Solution

Accepted Solutions
marksouzacosta

Hi @herard_bertrand ,

Yes, you can.

The code below returns every single file in a Space, no matter the subfolder:

For Each vFileName in FileList('lib://DVD Rental Snowflake (DATA-DEV):DataFiles/*')

	FileList:
    LOAD
    	'$(vFileName)' AS FileName
        AutoGenerate(1)
	;

Next vFileName

 

You can replace the * with any name pattern, for example:

 

For Each vFileName in FileList('lib://DVD Rental Snowflake (DATA-DEV):DataFiles/*FILM*')

	FileList:
    LOAD
    	'$(vFileName)' AS FileName
        AutoGenerate(1)
	;

Next vFileName

 

Returns

marksouzacosta_0-1759696802799.png

 

Regards,

Mark Costa

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

View solution in original post

4 Replies
Daniele_Purrone
Support
Support

Hi @herard_bertrand ,

can you please clarify what you mean?
At which stage do you want to be able to browse the folders? In the data load editor? And what do you mean by "dynamically"?

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
herard_bertrand
Partner - Creator II
Partner - Creator II
Author

Hi 🙂 

I try to concatenate QVD with a specific name in data load editor.

By Browsing, in fact I mean to load every qvd with a specific name in a lot of folders and sub folders. By dynamically I mean to do this without knowing the exact name of each folder / subfolders.

Thanks

marksouzacosta

Hi @herard_bertrand ,

Yes, you can.

The code below returns every single file in a Space, no matter the subfolder:

For Each vFileName in FileList('lib://DVD Rental Snowflake (DATA-DEV):DataFiles/*')

	FileList:
    LOAD
    	'$(vFileName)' AS FileName
        AutoGenerate(1)
	;

Next vFileName

 

You can replace the * with any name pattern, for example:

 

For Each vFileName in FileList('lib://DVD Rental Snowflake (DATA-DEV):DataFiles/*FILM*')

	FileList:
    LOAD
    	'$(vFileName)' AS FileName
        AutoGenerate(1)
	;

Next vFileName

 

Returns

marksouzacosta_0-1759696802799.png

 

Regards,

Mark Costa

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

herard_bertrand
Partner - Creator II
Partner - Creator II
Author

Thanks 👍