<?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 Using tjavarow component to transform a data flow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-tjavarow-component-to-transform-a-data-flow/m-p/2300827#M73011</link>
    <description>&lt;P&gt;Hello guys!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've been doing talend for a month now and have finished almost all exercises provided by talendforge and also most exercises provided in the internet. But one advanced exercise really had me stuck for quite awhile, it was in exercise 10 where what i have to do is I have to configure a tjavaflex so that it will generate two NSS(honestly, until now I really dont know what's this): "2700392000000", and "1760991000000". You also have to create a month, year and department columns within the tjavaflex. After creating it somehow, you put another tjavarow where you will have to instantiate the variables corresponding to the output data. Im really sorry if this sounds so confusing, but the exercise really is(or how its written), but somehow I really want to know how to solve this exercise. Anyways, I'll be attaching the screenshot below and any help would be always appreciated&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks and God Bless&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2015 12:07:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-16T12:07:39Z</dc:date>
    <item>
      <title>Using tjavarow component to transform a data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tjavarow-component-to-transform-a-data-flow/m-p/2300827#M73011</link>
      <description>&lt;P&gt;Hello guys!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've been doing talend for a month now and have finished almost all exercises provided by talendforge and also most exercises provided in the internet. But one advanced exercise really had me stuck for quite awhile, it was in exercise 10 where what i have to do is I have to configure a tjavaflex so that it will generate two NSS(honestly, until now I really dont know what's this): "2700392000000", and "1760991000000". You also have to create a month, year and department columns within the tjavaflex. After creating it somehow, you put another tjavarow where you will have to instantiate the variables corresponding to the output data. Im really sorry if this sounds so confusing, but the exercise really is(or how its written), but somehow I really want to know how to solve this exercise. Anyways, I'll be attaching the screenshot below and any help would be always appreciated&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks and God Bless&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 12:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tjavarow-component-to-transform-a-data-flow/m-p/2300827#M73011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-16T12:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using tjavarow component to transform a data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tjavarow-component-to-transform-a-data-flow/m-p/2300828#M73012</link>
      <description>With a tJavaFlex component, you have 3 code sections; start code, main code and end code. If you want to generate rows, you can use these sections in the following way to generate data rows. The below example is a simple example of how to generate 2 two rows with random data....&lt;BR /&gt;Start Code&lt;BR /&gt;&lt;PRE&gt;for(int i = 0; i&amp;lt;2; i++){&lt;/PRE&gt;&lt;BR /&gt;The above will create a loop that will loop twice. Check For Loops out in regard to Java to see how this works.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Main Code&lt;BR /&gt;&lt;PRE&gt;row1.col1 = routines.TalendString.getAsciiRandomString(10);&lt;BR /&gt;row1.col2 = routines.TalendString.getAsciiRandomString(10);&lt;/PRE&gt;&lt;BR /&gt;The above will populate two columns (col1 and col2) with random Strings for each iteration of the loop. "row1" is the name of the row connected to the tJavaFlex.&lt;BR /&gt;End Code&lt;BR /&gt;&lt;PRE&gt;}&lt;/PRE&gt;&lt;BR /&gt;The above simply ends the loop created in the Start Code.</description>
      <pubDate>Fri, 16 Oct 2015 12:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tjavarow-component-to-transform-a-data-flow/m-p/2300828#M73012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-16T12:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using tjavarow component to transform a data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tjavarow-component-to-transform-a-data-flow/m-p/2300829#M73013</link>
      <description>I know how to create a simple table using tjavaflex, its just that this one particular exercise really got me stuck...the table that it wanted me to output will look like this: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Input &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ouput &amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;NSS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; Month &amp;nbsp;&amp;nbsp; &amp;nbsp;| Year &amp;nbsp;| Department |&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;--------------------------------------------------------------- |&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;[font=Verdana, Helvetica, Arial, sans-serif] 
&lt;FONT size="1"&gt;2700392000000&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;03&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp;&lt;/FONT&gt;[/font][font=Verdana, Helvetica, Arial, sans-serif] 
&lt;FONT size="1"&gt;1970 | &amp;nbsp; &amp;nbsp; &amp;nbsp;92 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;[/font] 
&lt;BR /&gt;[font=Verdana, Helvetica, Arial, sans-serif] 
&lt;FONT size="1"&gt;1760991000000&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;09&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp;&lt;/FONT&gt;[/font][font=Verdana, Helvetica, Arial, sans-serif] 
&lt;FONT size="1"&gt;1976 | &amp;nbsp; &amp;nbsp; &amp;nbsp;91 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;[/font] 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;[font=Verdana, Helvetica, Arial, sans-serif] 
&lt;FONT size="1"&gt;I only got to the part in creating the 2 NSS numbers and what really confuses me is how to use that to have the output like the one showed above where there is a "Month", "Year" &amp;amp; "department"......in the exercise, it uses a tjavarow to do that...but it didnt really specified on how to do it...&lt;BR /&gt;&lt;BR /&gt;Anyways, I really appreciate any help from you guys &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;&lt;BR /&gt;&lt;/FONT&gt;[/font] 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGlK.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148056i98D2DB66530D646F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGlK.jpg" alt="0683p000009MGlK.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 19 Oct 2015 07:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tjavarow-component-to-transform-a-data-flow/m-p/2300829#M73013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T07:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using tjavarow component to transform a data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tjavarow-component-to-transform-a-data-flow/m-p/2300830#M73014</link>
      <description>Hi&amp;nbsp;
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;novastorm33&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;
&lt;BR /&gt;
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;I am not sure if you are looking for the code something like below-&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;one you have generated NSS in a variable called nss. you can use below code to generate rest of the fields-&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;
&lt;BR /&gt;[color=#5b5b5d][font=Verdana, Helvetica, Arial, sans-serif]
&lt;FONT size="2"&gt;&lt;B&gt;month=nss.substring(3, 5);&lt;/B&gt;&lt;/FONT&gt;[/font][/color]
&lt;BR /&gt;[color=#5b5b5d][font=Verdana, Helvetica, Arial, sans-serif]
&lt;FONT size="2"&gt;&lt;B&gt;dept=nss.substring(5,7);&lt;/B&gt;&lt;/FONT&gt;[/font][/color]
&lt;BR /&gt;
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;year="19"+nss.substring(1, 3);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Thanks,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;
&lt;BR /&gt;
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;sag&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;</description>
      <pubDate>Mon, 19 Oct 2015 11:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tjavarow-component-to-transform-a-data-flow/m-p/2300830#M73014</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-10-19T11:23:50Z</dc:date>
    </item>
  </channel>
</rss>

