<?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] Multiple Rows to single row (on lookup) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Multiple-Rows-to-single-row-on-lookup/m-p/2254578#M37554</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi&lt;BR /&gt;In the begining part of tJavaFlex: define a list, eg:&lt;BR /&gt;java.util.List list=new java.util.ArrayList();&lt;BR /&gt;In the main part of tJavaFlex: add each row to the list, eg:&lt;BR /&gt;list.add(row1.columnName);&lt;BR /&gt;In the end part of tJavaFlex: put the list to a global variable for use later, eg:&lt;BR /&gt;globalMap.put("mylist",list);&lt;BR /&gt;in the next subjob, get the list and pass it to tWebservice, the job design looks like:&lt;BR /&gt;mySqlInput---------------&amp;gt;tMap ----------------------------------&amp;gt; tJavaFlex &lt;BR /&gt; ^ (puts each item in a List) &lt;BR /&gt; | (lookup, join all matches)&lt;BR /&gt; |&lt;BR /&gt; mySqlInput&lt;BR /&gt; |&lt;BR /&gt;onsubjobok&lt;BR /&gt; |&lt;BR /&gt;tFixedFlowInput--main--tWebservice&lt;BR /&gt;on tFixedFlowInput, generate one data flow with one column, let's call it mylist, object type.&lt;BR /&gt;key:value&lt;BR /&gt;mylist&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;(java.util.Array)globalMap.get("mylist")&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;shong! talend master! awsome! works as it should, thanks!</description>
    <pubDate>Sat, 18 Aug 2012 22:26:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-18T22:26:33Z</dc:date>
    <item>
      <title>[resolved] Multiple Rows to single row (on lookup)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Multiple-Rows-to-single-row-on-lookup/m-p/2254575#M37551</link>
      <description>is there any additional component to achieve this?
&lt;BR /&gt;mySqlInput---------------&amp;gt;tMap ----------------------------------&amp;gt; tJavaFlex ---------------------------&amp;gt; tWebservice
&lt;BR /&gt; ^ (puts each item in a List) (parameter: List)
&lt;BR /&gt; | (lookup, join all matches)
&lt;BR /&gt; |
&lt;BR /&gt; mySqlInput
&lt;BR /&gt;when i try to set onComponent ok connection between tjavaflex an webservice, the request only happens for the last main row. When doing normal main connention, each lookup row gets passed to twebservice (not the complete List) Is there any component that passes the output row on condition (only when the list is filled)?</description>
      <pubDate>Fri, 17 Aug 2012 23:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Multiple-Rows-to-single-row-on-lookup/m-p/2254575#M37551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-17T23:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Multiple Rows to single row (on lookup)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Multiple-Rows-to-single-row-on-lookup/m-p/2254576#M37552</link>
      <description>Hi 
&lt;BR /&gt;In the begining part of tJavaFlex: define a list, eg: 
&lt;BR /&gt;java.util.List list=new java.util.ArrayList(); 
&lt;BR /&gt;In the main part of tJavaFlex: add each row to the list, eg: 
&lt;BR /&gt;list.add(row1.columnName); 
&lt;BR /&gt;In the end part of tJavaFlex: put the list to a global variable for use later, eg: 
&lt;BR /&gt;globalMap.put("mylist",list); 
&lt;BR /&gt;in the next subjob, get the list and pass it to tWebservice, the job design looks like: 
&lt;BR /&gt;mySqlInput---------------&amp;gt;tMap ----------------------------------&amp;gt; tJavaFlex 
&lt;BR /&gt; ^ (puts each item in a List) 
&lt;BR /&gt; | (lookup, join all matches) 
&lt;BR /&gt; | 
&lt;BR /&gt; mySqlInput 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tFixedFlowInput--main--tWebservice 
&lt;BR /&gt;on tFixedFlowInput, generate one data flow with one column, let's call it mylist, object type. 
&lt;BR /&gt;key:value 
&lt;BR /&gt;mylist 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;(java.util.Array)globalMap.get("mylist")</description>
      <pubDate>Sat, 18 Aug 2012 01:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Multiple-Rows-to-single-row-on-lookup/m-p/2254576#M37552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-18T01:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Multiple Rows to single row (on lookup)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Multiple-Rows-to-single-row-on-lookup/m-p/2254577#M37553</link>
      <description>Try a tFlowToIterate before the WebService. No guarantees.</description>
      <pubDate>Sat, 18 Aug 2012 01:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Multiple-Rows-to-single-row-on-lookup/m-p/2254577#M37553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-18T01:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Multiple Rows to single row (on lookup)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Multiple-Rows-to-single-row-on-lookup/m-p/2254578#M37554</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi&lt;BR /&gt;In the begining part of tJavaFlex: define a list, eg:&lt;BR /&gt;java.util.List list=new java.util.ArrayList();&lt;BR /&gt;In the main part of tJavaFlex: add each row to the list, eg:&lt;BR /&gt;list.add(row1.columnName);&lt;BR /&gt;In the end part of tJavaFlex: put the list to a global variable for use later, eg:&lt;BR /&gt;globalMap.put("mylist",list);&lt;BR /&gt;in the next subjob, get the list and pass it to tWebservice, the job design looks like:&lt;BR /&gt;mySqlInput---------------&amp;gt;tMap ----------------------------------&amp;gt; tJavaFlex &lt;BR /&gt; ^ (puts each item in a List) &lt;BR /&gt; | (lookup, join all matches)&lt;BR /&gt; |&lt;BR /&gt; mySqlInput&lt;BR /&gt; |&lt;BR /&gt;onsubjobok&lt;BR /&gt; |&lt;BR /&gt;tFixedFlowInput--main--tWebservice&lt;BR /&gt;on tFixedFlowInput, generate one data flow with one column, let's call it mylist, object type.&lt;BR /&gt;key:value&lt;BR /&gt;mylist&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;(java.util.Array)globalMap.get("mylist")&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;shong! talend master! awsome! works as it should, thanks!</description>
      <pubDate>Sat, 18 Aug 2012 22:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Multiple-Rows-to-single-row-on-lookup/m-p/2254578#M37554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-18T22:26:33Z</dc:date>
    </item>
  </channel>
</rss>

