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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kuwaryogi27
Creator
Creator

Reading multiple excel files using tFileList and display the name of files

Hi All,

I want to display filename's of the current excel file fetched using tFileList, can you please help me?

Regards,
Yogesh.

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

Hi Yogesh,

 

after tFileList you could use tJavaFlex  and in the main section

System.out.println(((String)globalMap.get("tFileList_1_CURRENT_FILE")));

regards, Vlad

View solution in original post

5 Replies
vapukov
Master II
Master II

Hi Yogesh,

 

after tFileList you could use tJavaFlex  and in the main section

System.out.println(((String)globalMap.get("tFileList_1_CURRENT_FILE")));

regards, Vlad

kuwaryogi27
Creator
Creator
Author

Hello @vapukov ,

Thanks this worked for me.

Regards,
Yogesh.

kuwaryogi27
Creator
Creator
Author

Hi @vapukov ,

Can you help me in archiving the files based on their names, suppose the excel's name contain either abc or xyz in files i want to archive them on thier name basis.

 

Regards,
Yogesh.

joearun4u
Creator
Creator

Hi Yogesh,

 

If you want to archive the files based upon the file mask, you can find a option in tFileList as below

0683p000009M3WD.jpg

 

You can give the file mask to filter the files and use tFileCopy to copy the files in your required destination as follow

 

0683p000009M3WI.jpg

 

Thanks,

Joe

 

Dont forget to give Kudos/Solution if you find this tip is useful

vapukov
Master II
Master II

hi Yogesh,

 

if you mean as "archiving" - relocate files, the answer from @joearun4u would be good