<?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 Is it possible to get the value of the variable from tJavaRow? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278428#M53905</link>
    <description>Hi there, 
&lt;BR /&gt;I have a job that is as follows: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD1U.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129019iD6B8B4E574DD128A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD1U.jpg" alt="0683p000009MD1U.jpg" /&gt;&lt;/span&gt; 
&lt;BR /&gt;It takes the value from specific cells from all the sheets in the workbook from the tFileExcelInput. It takes values from multiple cells and assigns them to a context variable. Each sheet is a row is the way to think of it. 
&lt;BR /&gt;I'm just stuck on how to output all the rows i.e. context variable values returned to either a tLogRow or OutputDelimited file? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Facoda 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;nbsp;</description>
    <pubDate>Fri, 13 Mar 2015 15:58:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-13T15:58:05Z</dc:date>
    <item>
      <title>Is it possible to get the value of the variable from tJavaRow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278428#M53905</link>
      <description>Hi there, 
&lt;BR /&gt;I have a job that is as follows: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD1U.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129019iD6B8B4E574DD128A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD1U.jpg" alt="0683p000009MD1U.jpg" /&gt;&lt;/span&gt; 
&lt;BR /&gt;It takes the value from specific cells from all the sheets in the workbook from the tFileExcelInput. It takes values from multiple cells and assigns them to a context variable. Each sheet is a row is the way to think of it. 
&lt;BR /&gt;I'm just stuck on how to output all the rows i.e. context variable values returned to either a tLogRow or OutputDelimited file? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Facoda 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;nbsp;</description>
      <pubDate>Fri, 13 Mar 2015 15:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278428#M53905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-13T15:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the value of the variable from tJavaRow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278429#M53906</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;After you read the file and assign values to the context variables, you can use tFixedFlowInput to generate an input flow and output them to a file. For example:
&lt;BR /&gt;tFileInputExcel-main--tJavaRow
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;|
&lt;BR /&gt;onsubjobok
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;|
&lt;BR /&gt;tFixedFlowInput--main-tFileOutputDelimited
&lt;BR /&gt;on tFixedFlowInput, define the columns which data you want to output and set the value of each column with corresponding context variable.&amp;nbsp;
&lt;BR /&gt;BR
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 14 Mar 2015 02:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278429#M53906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-14T02:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the value of the variable from tJavaRow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278430#M53907</link>
      <description>Hi Shong,
&lt;BR /&gt;I've already tried this job design but it only seems to return the values on the first sheet. It does not return the values from all the sheets.
&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 16 Mar 2015 15:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278430#M53907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T15:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the value of the variable from tJavaRow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278431#M53908</link>
      <description>If you read all sheets, it should returns data of the last sheet with this job design. If you expect to output data for each sheet, you need to iterate each sheet, refer to this custom 
&lt;A href="https://www.talendforge.org/exchange/index.php?eid=1263&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1" target="_blank" rel="nofollow noopener noreferrer"&gt;component &lt;/A&gt;shared by jlolling, or write down all the sheet name in a file and iterate each sheet name one by one. For example: 
&lt;BR /&gt;tFileInputDelimited--main(row1)--tFlowToIterate--Iterate-tFileInputExcel-main--tJavaRow-oncomponentok-tFixedFlowInput--main-tFileOutputDelimited 
&lt;BR /&gt;on tFileInputExcel, uncheck 'all sheet' box, and type in the sheet name in the Sheet list as below: 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;(String)globalMap.get("row1.sheetName")&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;//sheetName is the column name on tFileInputDelimited 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 17 Mar 2015 07:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278431#M53908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-17T07:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the value of the variable from tJavaRow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278432#M53909</link>
      <description>Hi Shong,
&lt;BR /&gt;I'm not sure I totally understand this flow that you have.&amp;nbsp;
&lt;BR /&gt;1.
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(String)globalMap.get("row1.sheetName")&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;is a global variable but the tFileInputDelimited does not have such a variable output that it can pass onto another component? I'm not sure how you can get the sheet name from the tFileInputDelimited component. The tFileExcelSheetList is the only component that I know that can give me the sheet list as a variable such as-&amp;nbsp;(String)globalMap.get("tFileExcelSheetList_1_SHEET_NAME"))
&lt;BR /&gt;2.Defining&amp;nbsp;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(String)globalMap.get("row1.sheetName")&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;in the column of tFileInputDelimited I'm not sure where the value for sheetName is coming from.
&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 17 Mar 2015 16:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278432#M53909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-17T16:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the value of the variable from tJavaRow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278433#M53910</link>
      <description>Hi&amp;nbsp;&lt;BR /&gt;If the sheet names are known and fixed, you can write them in a file and use tFileInputDelimited to read them. For example, a file contains the sheet names like:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;sheet1&lt;BR /&gt;sheet2&lt;BR /&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Then, use a tFlowToIterate to iterate each sheet name, or use a tForEach to replace tFileInputDelimited-main-&amp;gt;tFlowToIterate.</description>
      <pubDate>Wed, 18 Mar 2015 00:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-get-the-value-of-the-variable-from-tJavaRow/m-p/2278433#M53910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-18T00:57:10Z</dc:date>
    </item>
  </channel>
</rss>

