If you connect tFlowToIterate to your tDatabaseInput component, you'll get 1 global variable per field.
Assume you have 3 fields (currentFilename, destinationFolder and destinationFilename) and the flow after tDatabaseInput is called "row1".
Here is the tFileCopy configuration :
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema
Pick up some tips and tricks with Context Variables