<?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: [resolved] How to Iterate throw on an hashmap or arrayList and write the result in a csv file in talend open studio in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358536#M123545</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You need to set a dynamic output file name on tFileOutputDelimited, eg:&lt;/P&gt;&lt;P&gt;"D:/file/"+(String)myList.get(((Integer)globalMap.get("tLoop_1_current_iteration"))-1)+"out.csv"&lt;/P&gt;&lt;P&gt;otherwise, the component always create a new file with the same name for each iteration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps you.&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;</description>
    <pubDate>Mon, 04 Sep 2023 09:42:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-09-04T09:42:38Z</dc:date>
    <item>
      <title>[resolved] How to Iterate throw on an hashmap or arrayList and write the result in a csv file in talend open studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358535#M123544</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to iterate a hashMap or an arrayList in talent open studio, and, for each iteration, I would like to write a new csv row! I've done many tests but the result I get is the override of the first line. Below i post an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tSetGlobalVar_1component creates the arrayList.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nSnbcAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134687i241D166EF7C750AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nSnbcAAC.png" alt="0695b00000nSnbcAAC.png" /&gt;&lt;/span&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;The tJvava_1 component inserts values to arrayList.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nSnbwAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138437iD663AD42F688D754/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nSnbwAAC.png" alt="0695b00000nSnbwAAC.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tLoop_1 component loop to arrayList from 1 to arrayList.size&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nSnc1AAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133421i8CD3A3A4B91B67F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nSnc1AAC.png" alt="0695b00000nSnc1AAC.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tJavaFlex_1 component get the ArrayList from globalMap and iterare throw it and for each iteration, write the the row to cor column in row1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nSncBAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157008iAD792918EC02D262/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nSncBAAS.png" alt="0695b00000nSncBAAS.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tFileOutputDelimeted_1 has one column "code".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nSncLAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147378iDA5D43159A35C4ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nSncLAAS.png" alt="0695b00000nSncLAAS.png" /&gt;&lt;/span&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;The output csv file, in the end, has only one row with last value of arrayList.&lt;/P&gt;&lt;P&gt;Could someone help me?&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358535#M123544</guid>
      <dc:creator>zLucy</dc:creator>
      <dc:date>2024-11-15T21:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to Iterate throw on an hashmap or arrayList and write the result in a csv file in talend open studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358536#M123545</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You need to set a dynamic output file name on tFileOutputDelimited, eg:&lt;/P&gt;&lt;P&gt;"D:/file/"+(String)myList.get(((Integer)globalMap.get("tLoop_1_current_iteration"))-1)+"out.csv"&lt;/P&gt;&lt;P&gt;otherwise, the component always create a new file with the same name for each iteration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps you.&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;</description>
      <pubDate>Mon, 04 Sep 2023 09:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358536#M123545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-04T09:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to Iterate throw on an hashmap or arrayList and write the result in a csv file in talend open studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358537#M123546</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;and thanks for yours reply, i don't want to generate more files, i would to generate one csv file with more rows at the same column.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 12:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358537#M123546</guid>
      <dc:creator>zLucy</dc:creator>
      <dc:date>2023-09-04T12:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to Iterate throw on an hashmap or arrayList and write the result in a csv file in talend open studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358538#M123547</link>
      <description>&lt;P&gt;Check the 'Append' box  on tFileOutputDelimited to append rows to an existing file. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 06:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358538#M123547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-05T06:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to Iterate throw on an hashmap or arrayList and write the result in a csv file in talend open studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358539#M123548</link>
      <description>&lt;P&gt;I have checked the 'Append' box but nothing has changed&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 09:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358539#M123548</guid>
      <dc:creator>zLucy</dc:creator>
      <dc:date>2023-09-05T09:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to Iterate throw on an hashmap or arrayList and write the result in a csv file in talend open studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358540#M123549</link>
      <description>&lt;P&gt;For testing, add a tLogRow before tFileOutputDelimited to print the value on the console to see if it has the expected output data. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 10:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358540#M123549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-05T10:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to Iterate throw on an hashmap or arrayList and write the result in a csv file in talend open studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358541#M123550</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;, i checked the "append box" in base settings of tFileOutputDelimted_1 and now it works! &lt;/P&gt;&lt;P&gt;I selected the wrong checkbox (row_mode in advanced settings), the Italian translation fooled me! A thousand thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 07:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358541#M123550</guid>
      <dc:creator>zLucy</dc:creator>
      <dc:date>2023-09-06T07:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to Iterate throw on an hashmap or arrayList and write the result in a csv file in talend open studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358542#M123551</link>
      <description>&lt;P&gt;Glad to hear that, thanks for your feedback!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 02:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Iterate-throw-on-an-hashmap-or-arrayList-and/m-p/2358542#M123551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-07T02:45:25Z</dc:date>
    </item>
  </channel>
</rss>

