<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: File Naming with values of used variables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/File-Naming-with-values-of-used-variables/m-p/2375185#M137656</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You need to iterate each row and set a dynamic file name, eg:&lt;/P&gt;&lt;P&gt;tMysqlInput--main(row1)--tFlowToIterate--tFixedFlowInput--tMap--tFileoutputXML&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at the component documentation and learn tFlowToIterate component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFixedFlowInput: generate the current row, define the same schema as tMysqlInput, set the column value like:row1.columnName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tFileOutputXML, set the file path like:&lt;/P&gt;&lt;P&gt;"D:/folder_path/"+(String)globalMap.get("row1.deliverynumber")+".xml"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2020 01:16:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-18T01:16:47Z</dc:date>
    <item>
      <title>File Naming with values of used variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Naming-with-values-of-used-variables/m-p/2375184#M137655</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to include the name of a variable in the name of the outputfile (XML).&lt;/P&gt;&lt;P&gt;In the job I am accessing an MySQL Database with multiple rows and generating 1 to n XML files, one file per row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One row in the column is called deliverynumber. I would like to include its value (e.g. 12345) in the filename.&lt;/P&gt;&lt;P&gt;Could you please let me know if this is possible?&lt;/P&gt;&lt;P&gt;Maybe in a similiar way to include the date in the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Bastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Naming-with-values-of-used-variables/m-p/2375184#M137655</guid>
      <dc:creator>Bastifantasti1</dc:creator>
      <dc:date>2024-11-16T01:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: File Naming with values of used variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Naming-with-values-of-used-variables/m-p/2375185#M137656</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You need to iterate each row and set a dynamic file name, eg:&lt;/P&gt;&lt;P&gt;tMysqlInput--main(row1)--tFlowToIterate--tFixedFlowInput--tMap--tFileoutputXML&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at the component documentation and learn tFlowToIterate component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFixedFlowInput: generate the current row, define the same schema as tMysqlInput, set the column value like:row1.columnName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tFileOutputXML, set the file path like:&lt;/P&gt;&lt;P&gt;"D:/folder_path/"+(String)globalMap.get("row1.deliverynumber")+".xml"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 01:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Naming-with-values-of-used-variables/m-p/2375185#M137656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-18T01:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: File Naming with values of used variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Naming-with-values-of-used-variables/m-p/2375186#M137657</link>
      <description>&lt;P&gt;Hi Shong,

thanks for your Feedback - could you possible share a overview and order of used components in your described solution?

I understand your last part but struggle to understand the part with the iteration.

Best regards
Bastian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 13:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Naming-with-values-of-used-variables/m-p/2375186#M137657</guid>
      <dc:creator>Bastifantasti1</dc:creator>
      <dc:date>2020-08-18T13:45:55Z</dc:date>
    </item>
  </channel>
</rss>

