Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
bouabidi
Contributor
Contributor

Dynamic Filename Setting on tFileOutput Component not working

Hey everyone, I'm seeking some advice:

I need to read an XML settings file and parse it to extract its contents into multiple property files, one for each environment. Everything seems to be working smoothly, but the filename is lazily set and does not match the content

bouabidi_0-1715183781095.pngbouabidi_1-1715183792489.png

bouabidi_3-1715183835751.png

Thank you

 

Labels (1)
  • v8.x

1 Solution

Accepted Solutions
Shicong_Hong
Support
Support

Hi 

Because the file path is initialized before the data is processed. In this case, you use a tFlowToIterate each record read from Excel file, If abr value comes from tFileInputExcel, set the dynamic output file path as:

"xxx"+(String)globalMap.get("row1.abr")+"out.properties"

Regards,
Shicong

View solution in original post

1 Reply
Shicong_Hong
Support
Support

Hi 

Because the file path is initialized before the data is processed. In this case, you use a tFlowToIterate each record read from Excel file, If abr value comes from tFileInputExcel, set the dynamic output file path as:

"xxx"+(String)globalMap.get("row1.abr")+"out.properties"

Regards,
Shicong