<?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] tJavaFlex auto propagation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tJavaFlex-auto-propagation/m-p/2249036#M33705</link>
    <description>TOS 3.2.3 ... I use it because I'm also using the Datastage to Talend convert which doesn't work on TOS 4.x&lt;BR /&gt;Thanks for your answer!</description>
    <pubDate>Mon, 05 Jul 2010 07:27:54 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2010-07-05T07:27:54Z</dc:date>
    <item>
      <title>[resolved] tJavaFlex auto propagation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tJavaFlex-auto-propagation/m-p/2249034#M33703</link>
      <description>Hi,
&lt;BR /&gt;Here is my question :
&lt;BR /&gt;I had to read a table and put the rows into 2 Output XML files. I did the following :
&lt;BR /&gt;tAS400Input =&amp;gt; tMap =&amp;gt; tAdvancedFileOutputXML
&lt;BR /&gt; =&amp;gt; tAdvancedFileOutputXML_2
&lt;BR /&gt;It worked fine. 
&lt;BR /&gt;Now I have to change my job because the first tAdvancedFileOutputXML only has to receive the first row of the table and the second tAdvancedFileOutputXML still receives all rows.
&lt;BR /&gt;As the table doesn't have any primary key (and I can't change it) I thought of adding a tJavaFlex with a counter and put a restriction in the tMap for the first tAdvancedfileOutputXML.
&lt;BR /&gt;I wanted to use a tJavaFlex in order to use the "auto propagation" option.
&lt;BR /&gt;My job now looks like this :
&lt;BR /&gt;tAS400Input =&amp;gt; tJavaFlex =&amp;gt; tMap =&amp;gt; tAdvancedFileOutputXML
&lt;BR /&gt; =&amp;gt; tAdvancedFileOutputXML_2
&lt;BR /&gt;In my tJavaFlex I have the following :
&lt;BR /&gt;Begin code :
&lt;BR /&gt;int i=1;
&lt;BR /&gt;Main Code :
&lt;BR /&gt;outputLink.counter = i++;
&lt;BR /&gt;End Code :
&lt;BR /&gt;&amp;lt;nothing&amp;gt;
&lt;BR /&gt;I checked the "Auto Propagation" check box option in the tJavaFlex component.
&lt;BR /&gt;The problem is that the counter value in the tMap is set to 1 for every row... I don't understand why...
&lt;BR /&gt;I could find a "workaround" by changing the tJavaFlex as the following :
&lt;BR /&gt;Begin code :
&lt;BR /&gt;int i=1;
&lt;BR /&gt;Main Code :
&lt;BR /&gt;outputLink.name = inputLink.name;
&lt;BR /&gt;outputLink.firstname = inputLink.firstname;
&lt;BR /&gt;(... and so on)
&lt;BR /&gt;outputLink.counter = i++;
&lt;BR /&gt;End Code :
&lt;BR /&gt;&amp;lt;nothing&amp;gt;
&lt;BR /&gt;and NOT checking the "Auto Propagation" check box.
&lt;BR /&gt;This solution works fine but I don't understand why I have to write the outputlink.columname = inputlink.columname as I thought that the auto propagate check box was created to avoid this.
&lt;BR /&gt;Thank you in advance for your help</description>
      <pubDate>Sat, 16 Nov 2024 13:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tJavaFlex-auto-propagation/m-p/2249034#M33703</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tJavaFlex auto propagation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tJavaFlex-auto-propagation/m-p/2249035#M33704</link>
      <description>Hello 
&lt;BR /&gt;Which version of TOS do you use? It was a bug on 3.x version, it works fine on version 4.x.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Sun, 04 Jul 2010 02:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tJavaFlex-auto-propagation/m-p/2249035#M33704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-04T02:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tJavaFlex auto propagation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tJavaFlex-auto-propagation/m-p/2249036#M33705</link>
      <description>TOS 3.2.3 ... I use it because I'm also using the Datastage to Talend convert which doesn't work on TOS 4.x&lt;BR /&gt;Thanks for your answer!</description>
      <pubDate>Mon, 05 Jul 2010 07:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tJavaFlex-auto-propagation/m-p/2249036#M33705</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-07-05T07:27:54Z</dc:date>
    </item>
  </channel>
</rss>

