<?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: Use the below input and try to get the output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356400#M121928</link>
    <description>&lt;P&gt;Not sure what your purpose is as there is not a lot of context, but you could do something like :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create 3 context variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Source flow ----main-----&amp;gt;tJavaRow&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code for tJavaRow :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;context.idConcat += input_row.id + ",";
context.nameConcat += input_row.name + ",";
context.cityConcat += input_row.city + ",";&lt;/PRE&gt;
&lt;P&gt;Then remove last comma if needed in a tJava component.&lt;/P&gt;
&lt;P&gt;My output :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;1,2,3,4,5,&lt;/P&gt;
&lt;P class="p1"&gt;a,b,c,d,e,&lt;/P&gt;
&lt;P class="p1"&gt;krl,ndl,kphb,kp,null,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 09:15:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-26T09:15:25Z</dc:date>
    <item>
      <title>Use the below input and try to get the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356399#M121927</link>
      <description>&lt;P&gt;input:- &amp;nbsp;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;city&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1,2,3,4,5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a,b,c,d,e &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;krl,ndl,kphb,kp,null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:- &amp;nbsp;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; city&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;krl&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ndl&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kphb&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kp&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 08:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356399#M121927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T08:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use the below input and try to get the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356400#M121928</link>
      <description>&lt;P&gt;Not sure what your purpose is as there is not a lot of context, but you could do something like :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create 3 context variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Source flow ----main-----&amp;gt;tJavaRow&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code for tJavaRow :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;context.idConcat += input_row.id + ",";
context.nameConcat += input_row.name + ",";
context.cityConcat += input_row.city + ",";&lt;/PRE&gt;
&lt;P&gt;Then remove last comma if needed in a tJava component.&lt;/P&gt;
&lt;P&gt;My output :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;1,2,3,4,5,&lt;/P&gt;
&lt;P class="p1"&gt;a,b,c,d,e,&lt;/P&gt;
&lt;P class="p1"&gt;krl,ndl,kphb,kp,null,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 09:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356400#M121928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T09:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use the below input and try to get the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356401#M121929</link>
      <description>&lt;P&gt;I'm assuming that this data arrives in one "row" of 3 values (id, name and city). From that you want to output 5 rows with 3 columns. I'm assuming you are trusting the order in which each of the input columns are ordered and that all 3 columns have the same number of elements within each of them. If that is the case, you may be able to use this tutorial (&lt;A href="https://www.rilhia.com/quicktips/quick-tip-row-multiplication" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/quicktips/quick-tip-row-multiplication&lt;/A&gt;).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What I am doing here is multiplying rows by a value stored on the row. While you do not have a value representing the number of elements within each column, you can count the number of separator values (or commas in this case) and add 1. Once you have that, you can multiply the number of rows. The all you would need to do is split the three input columns by their separators. You can use a bit of Java to do this. Take a look here to see how (&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#split(java.lang.String,%20int" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#split(java.lang.String,%20int&lt;/A&gt;). Once you have your String array, you can use the row multiplication number (minus 1 since array indexing starts at 0) to return your value one row at a time.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 09:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356401#M121929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T09:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Use the below input and try to get the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356402#M121930</link>
      <description>I completely misread the question it seems. +1 to Rilhia</description>
      <pubDate>Tue, 26 Sep 2017 09:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356402#M121930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T09:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use the below input and try to get the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356403#M121931</link>
      <description>&lt;P&gt;yes, We need to get them into rows&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:- Check once output&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 09:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-the-below-input-and-try-to-get-the-output/m-p/2356403#M121931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T09:48:10Z</dc:date>
    </item>
  </channel>
</rss>

