<?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 to output multiple rows? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353454#M119640</link>
    <description>Hello ! Hmm, did I miss something ? I don't see any screenshot Shong &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; And I would be interested by it ^^</description>
    <pubDate>Mon, 02 May 2016 15:53:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-02T15:53:00Z</dc:date>
    <item>
      <title>tJava to output multiple rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353449#M119635</link>
      <description>Ok, so my input is a zip file containing multiple serialized objects, each containing various combinations of tokens that can be combined in multiple ways to create meaningful part numbers. 
&lt;BR /&gt;What I'm trying to do is use a tJava component to interface with that zip file (which I've done successfully), store the objects in a variable (also done successfully), then use a simple algorithm to create all possible combinations of the tokens. 
&lt;BR /&gt;The part I'm having trouble figuring out is how to output each one of these combinations as its own row to my next component in line (atm a tLogRow). 
&lt;BR /&gt;What I'm during currently (which only outputs one row): 
&lt;BR /&gt;for(String series : pnfNamePnFormatMap.keySet()) 
&lt;BR /&gt;{ 
&lt;BR /&gt; row1.series = series; 
&lt;BR /&gt;} 
&lt;BR /&gt;where row1's schema consists of a single field (for now) of type String. 
&lt;BR /&gt;This is outputting a single row to the log. How do i get it to iterate over all the possibilities?</description>
      <pubDate>Sat, 16 Nov 2024 13:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353449#M119635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to output multiple rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353450#M119636</link>
      <description>Hello 
&lt;BR /&gt;I show you a scenario to achieve it. Please see my screenshot.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 17 Apr 2009 03:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353450#M119636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-17T03:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to output multiple rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353451#M119637</link>
      <description>Ok, I've successfully done phase one of this. The next phase is I need to include a list of string values from an external file (csv) in the pn generation. Specifically, I need to generate all possible part numbers for each possible value that comes from the file, and put a complete list of them into an external csv.
&lt;BR /&gt;I tried just attaching a file input to the java and inserting the value but it didn't work.
&lt;BR /&gt;For example, I need to generate all possible part numbers as above, but i need to do it once each inserting values like these into the part number in each run:
&lt;BR /&gt;1|TNPW0402TNPWXXXBHTA 
&lt;BR /&gt;2|TNPW0603TNPWXXXBHTA 
&lt;BR /&gt;3|TNPW0805TNPWXXXBHTA 
&lt;BR /&gt;4|TNPW1206TNPWXXXBHTA 
&lt;BR /&gt;5|TNPW1210TNPWXXXBHTA 
&lt;BR /&gt;6|TNPW2010TNPWXXXBHTA
&lt;BR /&gt;100
&lt;BR /&gt;101
&lt;BR /&gt;102
&lt;BR /&gt;104
&lt;BR /&gt;105
&lt;BR /&gt;106
&lt;BR /&gt;where each of the values listed take the place of XXX in the part numbers listed, creating one instance of each pn above for each value listed. Ideally, it would be nice to just have a Java.util.List of the values extracted from the file because that would fit nicely with my logic that i'm using to generate the part numbers.
&lt;BR /&gt;What is happening right now is that the input from the file is going straight through and ignoring all of my logic and being output as the ID to my .csv file.</description>
      <pubDate>Thu, 23 Apr 2009 19:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353451#M119637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-23T19:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to output multiple rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353452#M119638</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;For example, I need to generate all possible part numbers as above, but i need to do it once each inserting values like these into the part number in each run:&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Sorry, I can't understand your request. What are your input records and expected output result? 
&lt;BR /&gt;Please give us an example 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 24 Apr 2009 02:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353452#M119638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-24T02:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to output multiple rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353453#M119639</link>
      <description>Never mind, i just figured it out. I switched from a tJava component to a tJavaRow and fed the data through and it worked. Thanks for the help 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 24 Apr 2009 03:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353453#M119639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-24T03:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to output multiple rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353454#M119640</link>
      <description>Hello ! Hmm, did I miss something ? I don't see any screenshot Shong &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; And I would be interested by it ^^</description>
      <pubDate>Mon, 02 May 2016 15:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353454#M119640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-02T15:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to output multiple rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353455#M119641</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello &lt;BR /&gt;I show you a scenario to achieve it. Please see my screenshot.&lt;BR /&gt;Best regards&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; shong&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Shong. 
&lt;BR /&gt;Could you please show me the screenshot? I really need the answer 'cause I need to send data to different outputs from a tJavaRow (I apply validation to the data with "if" and "else" sentences and depending the result of the validation I send it to an specific output, in this case, an insertion into an Oracle Database for error loggin or a transactional model). 
&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 16 Mar 2017 01:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353455#M119641</guid>
      <dc:creator>Dazbellboy</dc:creator>
      <dc:date>2017-03-16T01:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to output multiple rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353456#M119642</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi Shong.&lt;BR /&gt;Could you please show me the screenshot? I really need the answer 'cause I need to send data to different outputs from a tJavaRow (I apply validation to the data with "if" and "else" sentences and depending the result of the validation I send it to an specific output, in this case, an insertion into an Oracle Database for error loggin or a transactional model).&lt;BR /&gt;Thanks&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi dazbellboy &amp;nbsp; 
&lt;BR /&gt;This topic was rather old, I don't have these screenshots any more. I would like you to open a new topic for your question and describe it with details, I will follow up your problem and help you. 
&lt;BR /&gt;Thanks! 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 16 Mar 2017 11:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-output-multiple-rows/m-p/2353456#M119642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-16T11:20:15Z</dc:date>
    </item>
  </channel>
</rss>

