Limit iteration on tfilelist

Four Stars

Limit iteration on tfilelist

Hello,

 

I have a tfile list component that get files from an ftp directory which contains hundreds files. But i want only one file (the most recent), it is possible to limit the number of iteration of my tfilelist  to only one, instead of hundreds?

 

Thank you for your support

 

 

Seven Stars

Re: Limit iteration on tfilelist

If you select "Order by - Modified date descending" in your tFileList component, then you can then use a tSampleRow to get the first record returned which will be the most recent file.