<?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: Bi-Dimensional string array - Routine output to tJavaRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Bi-Dimensional-string-array-Routine-output-to-tJavaRow/m-p/2319408#M89656</link>
    <description>You to use the tJavaFlex for this. The Start Code section would have this code in it....&lt;BR /&gt;&lt;BR /&gt;String [][]s =WebDriver_Selenium_3_8_1.post_text_login(x,x,x)&lt;BR /&gt;&lt;BR /&gt;for(int i=0; i&amp;lt;10; i++) {&lt;BR /&gt;&lt;BR /&gt;....... the Main Code would have this code in it......&lt;BR /&gt;&lt;BR /&gt;row14.post_text = s[i][0];&lt;BR /&gt;row14.post_photo = s[i][1];&lt;BR /&gt;row14.post_DT = s[i][2];&lt;BR /&gt;row14.id_post = s[i][0];&lt;BR /&gt;&lt;BR /&gt;...... and the End Code would have this code in it....&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.....yes, you just close the loop here.&lt;BR /&gt;&lt;BR /&gt;You cannot generate rows from a tJavaRow, it just processes each row passed to it. To generate rows the only Java component to use is the tJavaFlex.</description>
    <pubDate>Sun, 18 Mar 2018 03:35:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-18T03:35:50Z</dc:date>
    <item>
      <title>Bi-Dimensional string array - Routine output to tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Bi-Dimensional-string-array-Routine-output-to-tJavaRow/m-p/2319407#M89655</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I'm facing an issue passign a multi dimensionall array from routine output to tJavaRow.&lt;/P&gt; 
&lt;P&gt;Scenario:&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;I've defined a routin with bi-dimensional string :&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;public static  String [][] post_text_login&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;In my routine I've several "for" nested cycles, setting array values on specific step:&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;PRE&gt;for(int i=0;i&amp;lt;posts.size();i++)
        {
        	post_text[i] = posts.get(i).getElementsByClass("xxxt").text();
        	post_photo[i] = posts.get(i).getElementsByClass("_5dec _xcx").attr("data-ploi");
        	post_DT[i] = posts.get(i).getElementsByTag("abbr").attr("data-utime");
        };
        for(int j=0;j&amp;lt;posts.size();j++)
        {
        	ret_link[j][0]= post_text[j];
        	ret_link[j][1]= post_photo[j];
        	ret_link[j][2]= post_DT[j];
}
        &lt;/PRE&gt; 
&lt;UL&gt; 
 &lt;LI&gt;when I call the routine from the tJavaRow, loops are not working:&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;PRE&gt;String [][]s =WebDriver_Selenium_3_8_1.post_text_login(x,x,x)

for(int i=0; i&amp;lt;10; i++) {
row14.post_text = s[i][0];
            row14.post_photo = s[i][1];
            row14.post_DT = s[i][2];
            row14.id_post = s[i][0];
 }&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schema.JPG" style="width: 376px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt7S.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151275i19A403A52FE64C9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt7S.jpg" alt="0683p000009Lt7S.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I iterate trought the bi-dimensional array and cycle to rows?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Bi-Dimensional-string-array-Routine-output-to-tJavaRow/m-p/2319407#M89655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Bi-Dimensional string array - Routine output to tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Bi-Dimensional-string-array-Routine-output-to-tJavaRow/m-p/2319408#M89656</link>
      <description>You to use the tJavaFlex for this. The Start Code section would have this code in it....&lt;BR /&gt;&lt;BR /&gt;String [][]s =WebDriver_Selenium_3_8_1.post_text_login(x,x,x)&lt;BR /&gt;&lt;BR /&gt;for(int i=0; i&amp;lt;10; i++) {&lt;BR /&gt;&lt;BR /&gt;....... the Main Code would have this code in it......&lt;BR /&gt;&lt;BR /&gt;row14.post_text = s[i][0];&lt;BR /&gt;row14.post_photo = s[i][1];&lt;BR /&gt;row14.post_DT = s[i][2];&lt;BR /&gt;row14.id_post = s[i][0];&lt;BR /&gt;&lt;BR /&gt;...... and the End Code would have this code in it....&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.....yes, you just close the loop here.&lt;BR /&gt;&lt;BR /&gt;You cannot generate rows from a tJavaRow, it just processes each row passed to it. To generate rows the only Java component to use is the tJavaFlex.</description>
      <pubDate>Sun, 18 Mar 2018 03:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Bi-Dimensional-string-array-Routine-output-to-tJavaRow/m-p/2319408#M89656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-18T03:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bi-Dimensional string array - Routine output to tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Bi-Dimensional-string-array-Routine-output-to-tJavaRow/m-p/2319409#M89657</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;thx for the tip.&lt;/P&gt; 
&lt;P&gt;I still have issue understandign how to pass variable from previous componet to tJavaFlex:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.JPG" style="width: 378px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt2S.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128921i577D605AD7D5FCC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt2S.jpg" alt="0683p000009Lt2S.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;This it the code in the start part of tJavaFlex:&lt;/P&gt; 
&lt;PRE&gt;String [][]s =WebDriver_Selenium_3_8_1.post_text_login(XXX,YYY,row12.line);&lt;/PRE&gt; 
&lt;P&gt;row12.line is always null.&lt;/P&gt; 
&lt;P&gt;Thx&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Mar 2018 16:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Bi-Dimensional-string-array-Routine-output-to-tJavaRow/m-p/2319409#M89657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-18T16:57:47Z</dc:date>
    </item>
  </channel>
</rss>

