<?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: tJava returning array of Strings in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251824#M35652</link>
    <description>Thanks, this helped but not enterely.
&lt;BR /&gt;When I say merging, I in fact think of merging the arraylists.
&lt;BR /&gt;If i have 3 files, there will be 3 array lists generated.
&lt;BR /&gt;For example,
&lt;BR /&gt;for file1 I get
&lt;BR /&gt;a = 'test1'
&lt;BR /&gt;a = 'test2'
&lt;BR /&gt;a = 'test3'
&lt;BR /&gt;a = 'test4'
&lt;BR /&gt;a = 'test5'
&lt;BR /&gt;for file 2 I get
&lt;BR /&gt;b = 'testing1'
&lt;BR /&gt;b = 'testing2'
&lt;BR /&gt;b = 'testing3'
&lt;BR /&gt;and for file 3 I get
&lt;BR /&gt;
&lt;BR /&gt;c = 'tst1'
&lt;BR /&gt;c = 'tst2'
&lt;BR /&gt;c = 'tst3'
&lt;BR /&gt;c = 'tst4'
&lt;BR /&gt;
&lt;BR /&gt;What I want to get are the following rows in the mysqltable:
&lt;BR /&gt;column1
&lt;BR /&gt;'test1'
&lt;BR /&gt;'test2'
&lt;BR /&gt;'test3'
&lt;BR /&gt;'test4'
&lt;BR /&gt;'test5'
&lt;BR /&gt;'testing1'
&lt;BR /&gt;'testing2'
&lt;BR /&gt;'testing3'
&lt;BR /&gt;'tst1'
&lt;BR /&gt;'tst2'
&lt;BR /&gt;'tst3'
&lt;BR /&gt;'tst4'
&lt;BR /&gt;I hope this explains the problem better. Can you plese look into this?
&lt;BR /&gt;
&lt;BR /&gt;Thanks
&lt;BR /&gt;Magi</description>
    <pubDate>Thu, 22 Nov 2007 12:56:26 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2007-11-22T12:56:26Z</dc:date>
    <item>
      <title>tJava returning array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251818#M35646</link>
      <description>I have a Java class that returns array of strings and I would like to write the values of the array elements to a database table.
&lt;BR /&gt;For example tJava creates an array:
&lt;BR /&gt;a = 'test1'
&lt;BR /&gt;a = 'test2'
&lt;BR /&gt;a = 'test3'
&lt;BR /&gt;a = 'test4'
&lt;BR /&gt;a = 'test5'
&lt;BR /&gt;
&lt;BR /&gt;and I would like to insert all of these values in separate rows in a table.
&lt;BR /&gt;Is this possible with TOS?
&lt;BR /&gt;Thanks
&lt;BR /&gt;Magi</description>
      <pubDate>Sat, 16 Nov 2024 14:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251818#M35646</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T14:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: tJava returning array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251819#M35647</link>
      <description>Hi 
&lt;BR /&gt;If you want to insert the values into table, you can use the tJavaRow component and add new columns.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 21 Nov 2007 08:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251819#M35647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-21T08:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: tJava returning array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251820#M35648</link>
      <description>Thank, but I think that it wouldn't work because the number of array elements is not know at design time and because I need one new column that contains all the values of the array and not one column for each value. 
&lt;BR /&gt; 
&lt;BR /&gt;Magi</description>
      <pubDate>Wed, 21 Nov 2007 08:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251820#M35648</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-11-21T08:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: tJava returning array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251821#M35649</link>
      <description>This is the purpose of the tForEach component.&lt;BR /&gt;Regards,</description>
      <pubDate>Wed, 21 Nov 2007 08:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251821#M35649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-21T08:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: tJava returning array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251822#M35650</link>
      <description>OK, I can connect my tFileList component to a tForEach component, but then I cannot connect my tForEach component to tJavaRow. Can you please explain how should they be connected?
&lt;BR /&gt;The scenario is the following:
&lt;BR /&gt;For a list of files I am executing a piece of Java that returns an ArrayList. So, if I have 10 files I have to execute the Java code 10 times and get 10 ArrayLists that need to be merged then in one list and put in a DB table. 
&lt;BR /&gt;Thanks
&lt;BR /&gt;Magi</description>
      <pubDate>Wed, 21 Nov 2007 16:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251822#M35650</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-11-21T16:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: tJava returning array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251823#M35651</link>
      <description>Here is a simple job doing this process.
&lt;BR /&gt;I'm maybe wrong in the tJavaRow but I'm sure you understand your process more than me ;-)
&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 21 Nov 2007 23:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251823#M35651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-21T23:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: tJava returning array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251824#M35652</link>
      <description>Thanks, this helped but not enterely.
&lt;BR /&gt;When I say merging, I in fact think of merging the arraylists.
&lt;BR /&gt;If i have 3 files, there will be 3 array lists generated.
&lt;BR /&gt;For example,
&lt;BR /&gt;for file1 I get
&lt;BR /&gt;a = 'test1'
&lt;BR /&gt;a = 'test2'
&lt;BR /&gt;a = 'test3'
&lt;BR /&gt;a = 'test4'
&lt;BR /&gt;a = 'test5'
&lt;BR /&gt;for file 2 I get
&lt;BR /&gt;b = 'testing1'
&lt;BR /&gt;b = 'testing2'
&lt;BR /&gt;b = 'testing3'
&lt;BR /&gt;and for file 3 I get
&lt;BR /&gt;
&lt;BR /&gt;c = 'tst1'
&lt;BR /&gt;c = 'tst2'
&lt;BR /&gt;c = 'tst3'
&lt;BR /&gt;c = 'tst4'
&lt;BR /&gt;
&lt;BR /&gt;What I want to get are the following rows in the mysqltable:
&lt;BR /&gt;column1
&lt;BR /&gt;'test1'
&lt;BR /&gt;'test2'
&lt;BR /&gt;'test3'
&lt;BR /&gt;'test4'
&lt;BR /&gt;'test5'
&lt;BR /&gt;'testing1'
&lt;BR /&gt;'testing2'
&lt;BR /&gt;'testing3'
&lt;BR /&gt;'tst1'
&lt;BR /&gt;'tst2'
&lt;BR /&gt;'tst3'
&lt;BR /&gt;'tst4'
&lt;BR /&gt;I hope this explains the problem better. Can you plese look into this?
&lt;BR /&gt;
&lt;BR /&gt;Thanks
&lt;BR /&gt;Magi</description>
      <pubDate>Thu, 22 Nov 2007 12:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251824#M35652</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-11-22T12:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: tJava returning array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251825#M35653</link>
      <description>In the tJavaRow, add a separator between the myString in the mergedString :&lt;BR /&gt;mergedString+=myString+",";&lt;BR /&gt;and add a tNormalize after the tJavaRow.&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 23 Nov 2007 16:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251825#M35653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-23T16:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: tJava returning array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251826#M35654</link>
      <description>Many Thanks&lt;BR /&gt;I tested this and it works fine.&lt;BR /&gt;Magi.</description>
      <pubDate>Mon, 26 Nov 2007 16:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-returning-array-of-Strings/m-p/2251826#M35654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-26T16:04:30Z</dc:date>
    </item>
  </channel>
</rss>

