<?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 Can tJavaFlex create output rows at End Code section? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Can-tJavaFlex-create-output-rows-at-End-Code-section/m-p/2292944#M65970</link>
    <description>Hi,&lt;BR /&gt;I am new to Talend. I need to create a special transformation for input and output rows that can not match one to one. I wonder if I can use tJavaFlex:&lt;BR /&gt;Main Code:&lt;BR /&gt;Collect data from input_rows&lt;BR /&gt;&lt;BR /&gt;End Code:&lt;BR /&gt;   Perform special transformation (third party library) on data collected at Main Code&lt;BR /&gt;   Dump output into output_rows&lt;BR /&gt;Is there a function like generateRow()  that I can call in the End Code segment:&lt;BR /&gt;   Loop:&lt;BR /&gt;       output_row.col1 = val1&lt;BR /&gt;       output_row.col2 = val2&lt;BR /&gt;       generateRow()     // create an output row&lt;BR /&gt;If answer is no, is there an another way.&lt;BR /&gt;Thank in advance.&lt;BR /&gt;Hugh</description>
    <pubDate>Sat, 16 Nov 2024 12:50:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:50:55Z</dc:date>
    <item>
      <title>Can tJavaFlex create output rows at End Code section?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-tJavaFlex-create-output-rows-at-End-Code-section/m-p/2292944#M65970</link>
      <description>Hi,&lt;BR /&gt;I am new to Talend. I need to create a special transformation for input and output rows that can not match one to one. I wonder if I can use tJavaFlex:&lt;BR /&gt;Main Code:&lt;BR /&gt;Collect data from input_rows&lt;BR /&gt;&lt;BR /&gt;End Code:&lt;BR /&gt;   Perform special transformation (third party library) on data collected at Main Code&lt;BR /&gt;   Dump output into output_rows&lt;BR /&gt;Is there a function like generateRow()  that I can call in the End Code segment:&lt;BR /&gt;   Loop:&lt;BR /&gt;       output_row.col1 = val1&lt;BR /&gt;       output_row.col2 = val2&lt;BR /&gt;       generateRow()     // create an output row&lt;BR /&gt;If answer is no, is there an another way.&lt;BR /&gt;Thank in advance.&lt;BR /&gt;Hugh</description>
      <pubDate>Sat, 16 Nov 2024 12:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-tJavaFlex-create-output-rows-at-End-Code-section/m-p/2292944#M65970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can tJavaFlex create output rows at End Code section?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-tJavaFlex-create-output-rows-at-End-Code-section/m-p/2292945#M65971</link>
      <description>Hi 
&lt;BR /&gt;I want to know do you want to perform special transformation on each row or all the rows? 
&lt;BR /&gt;if each row, you should use tJavaRow component. 
&lt;BR /&gt;if all rows, the tJavaFlex is the proper one. 
&lt;BR /&gt;Assuming you are using tJavaFlex, at the end code of tJavaFlex, set the result to a global variable after you finish the special transformation on data collected, for example: 
&lt;BR /&gt;globalMap.put("key", result); 
&lt;BR /&gt;on next subjob, using a tFixedFlowInput to generate one row, add one field on schema, let's called line. 
&lt;BR /&gt;column:value 
&lt;BR /&gt;line 
&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;String)globalMap.get("key") 
&lt;BR /&gt;or 
&lt;BR /&gt;line 
&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;Integer)globalMap.get("key") // it depends on the data type of result. 
&lt;BR /&gt;tFixedFlowInput---main--tLogRow 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 23 Jun 2011 07:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-tJavaFlex-create-output-rows-at-End-Code-section/m-p/2292945#M65971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-23T07:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can tJavaFlex create output rows at End Code section?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-tJavaFlex-create-output-rows-at-End-Code-section/m-p/2292946#M65972</link>
      <description>The transformation has to be perform on all the rows. The third party library is a plotting tool to create interpolation points for input data set. I will try to use globalMap to on 2 tJavaFlex instead of one. Thanks.</description>
      <pubDate>Thu, 23 Jun 2011 14:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-tJavaFlex-create-output-rows-at-End-Code-section/m-p/2292946#M65972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-23T14:59:33Z</dc:date>
    </item>
  </channel>
</rss>

