<?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 Converting multiple rows into one in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231335#M21667</link>
    <description>Hi, I have a fixed flow input producing three rows, each with the field 'name' and 'role.
&lt;BR /&gt;I want to output all of the rows in a single row and single field in the fileoutputdelimited.
&lt;BR /&gt;The reason for this is that I need to convert the incoming rows to a json like format.
&lt;BR /&gt;(I already know about the component to write json fields - it's not what I need)
&lt;BR /&gt;I've tried using jJavaFlex with the main block building a string and the end block propagating the row, but it seems to just pass a row out for each incoming row anyway.</description>
    <pubDate>Tue, 11 Sep 2012 10:02:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-09-11T10:02:23Z</dc:date>
    <item>
      <title>Converting multiple rows into one</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231335#M21667</link>
      <description>Hi, I have a fixed flow input producing three rows, each with the field 'name' and 'role.
&lt;BR /&gt;I want to output all of the rows in a single row and single field in the fileoutputdelimited.
&lt;BR /&gt;The reason for this is that I need to convert the incoming rows to a json like format.
&lt;BR /&gt;(I already know about the component to write json fields - it's not what I need)
&lt;BR /&gt;I've tried using jJavaFlex with the main block building a string and the end block propagating the row, but it seems to just pass a row out for each incoming row anyway.</description>
      <pubDate>Tue, 11 Sep 2012 10:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231335#M21667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-11T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple rows into one</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231336#M21668</link>
      <description>Hi,&lt;BR /&gt;Try this:    tFixedFlowInput------row1---(main)------tJavaRow&lt;BR /&gt;suppose you put your three colmun in a context variable&lt;BR /&gt;In your  tJavaRow : context.mergethreerow=row1.column1+row1.column2+row1.column3;</description>
      <pubDate>Tue, 11 Sep 2012 10:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231336#M21668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-11T10:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple rows into one</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231337#M21669</link>
      <description>Thanks, but I actually need values from each row to combine into a single field in a single row e.g.
&lt;BR /&gt;So input rows are (just an example):
&lt;BR /&gt;Row1
&lt;BR /&gt;--------
&lt;BR /&gt;name: Mike
&lt;BR /&gt;role: Author
&lt;BR /&gt;Row2
&lt;BR /&gt;------
&lt;BR /&gt;name:Jo 
&lt;BR /&gt;role: Illustrator
&lt;BR /&gt;
&lt;BR /&gt;tFixedFlowInput .... row1(main) (2 rows)---&amp;gt; tJavaFlex ------ row2(main) (1 row) -----&amp;gt; tOutputFileDelimeted
&lt;BR /&gt;
&lt;BR /&gt;Output would be 1 row containing:
&lt;BR /&gt;Attributex: { "contributors" : }
&lt;BR /&gt;If anyone can achieve this exact output using another component that already exists please let me know.
&lt;BR /&gt;In my real job, I don't want to append the rows to a variable and then use a separate subjob, because this flow is contributing to an XML file that's being built, and I don't think I can add into the XML structure after the file is written? he above is just an example to illustrate the principle of many rows to one.</description>
      <pubDate>Tue, 11 Sep 2012 10:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231337#M21669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-11T10:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple rows into one</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231338#M21670</link>
      <description>I read another thread on this forum and am following the advice there, the job isn't working yet, but I think it will.</description>
      <pubDate>Wed, 12 Sep 2012 09:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231338#M21670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-12T09:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple rows into one</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231339#M21671</link>
      <description>Please post this topic URL so someone reading this will get to the solution quicker 
&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>Wed, 12 Sep 2012 11:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231339#M21671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-12T11:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple rows into one</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231340#M21672</link>
      <description>Here's a solution: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCkpaCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Multiple-Rows-to-single-row-on-lookup/td-p/76135&lt;/A&gt;</description>
      <pubDate>Thu, 13 Sep 2012 12:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231340#M21672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-13T12:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple rows into one</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231341#M21673</link>
      <description>HI , 
  &lt;BR /&gt;I have the Table with columns "REPORT_INFO_ID","REPORT_ID","SECTION_CODE","SOURCE_NAME","JSON_OUTPUT","METRIC_NAME","SEQUENCE" 
  &lt;BR /&gt;"JSON_OUTPUT" column has JSON format in multiple levels&amp;nbsp; (Means each record in that column has a json format). 
  &lt;BR /&gt;json files are there as per source systems...now how i can process the data. 
  &lt;BR /&gt;sample data as in below: 
  &lt;BR /&gt;&amp;nbsp; 
  &lt;BR /&gt; 
  &lt;TABLE&gt; 
   &lt;TBODY&gt; 
    &lt;TR&gt; 
     &lt;TD&gt;REPORT_INFO_ID&lt;/TD&gt; 
     &lt;TD&gt;REPORT_ID&lt;/TD&gt; 
     &lt;TD&gt;SECTION_CODE&lt;/TD&gt; 
     &lt;TD&gt;SOURCE_NAME&lt;/TD&gt; 
     &lt;TD&gt;JSON_OUTPUT&lt;/TD&gt; 
     &lt;TD&gt;METRIC_NAME&lt;/TD&gt; 
     &lt;TD&gt;SEQUENCE&lt;/TD&gt; 
    &lt;/TR&gt; 
    &lt;TR&gt; 
     &lt;TD&gt;16&lt;/TD&gt; 
     &lt;TD&gt;2&lt;/TD&gt; 
     &lt;TD&gt;APIGEE_AVG_RESP_TIME&lt;/TD&gt; 
     &lt;TD&gt;APIGEE&lt;/TD&gt; 
    &lt;/TR&gt;
   &lt;/TBODY&gt;
  &lt;/TABLE&gt;
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Md7m"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Md7m"&gt;OriginalPost.pdf&lt;/A&gt;</description>
      <pubDate>Sat, 01 Apr 2017 18:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-multiple-rows-into-one/m-p/2231341#M21673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-01T18:44:33Z</dc:date>
    </item>
  </channel>
</rss>

