<?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 tForEach - cant capture values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tForEach-cant-capture-values/m-p/2316660#M87187</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;IM trying to use tForEach to iterate over a set of values and write these values along with some context variables to a file.&amp;nbsp; I want each row of the ForEach to result in a new line in the target file.&amp;nbsp;&amp;nbsp;&amp;nbsp; I want the value of ForEach to get used and then concatenate a globalMap Variable and a context variable to that value before writing it as a line.&lt;BR /&gt;IM set up like this:&lt;BR /&gt;&lt;BR /&gt;tForEach--&amp;gt;tIteratetoFlow-&amp;gt;tFileOutputExcel&lt;BR /&gt;I have a list of values set up in my ForEach and a column set up in the IterateToFlow and Excel file.&amp;nbsp;&amp;nbsp; The column in Iterate to Flow has this in its value&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;globalMap.get("tForeach_1_CURRENT_VALUE")&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;Every time i run I error with this on the For Each&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;Error Line: 602&lt;BR /&gt;Detail Message: Type mismatch: cannot convert from Object to String&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;What am i doing wrong?&amp;nbsp;&amp;nbsp; Should i be using tJavaRow or tJavaFlexInstead?&lt;BR /&gt;&lt;BR /&gt;If so , what is the general method?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 01:34:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-18T01:34:54Z</dc:date>
    <item>
      <title>tForEach - cant capture values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tForEach-cant-capture-values/m-p/2316660#M87187</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;IM trying to use tForEach to iterate over a set of values and write these values along with some context variables to a file.&amp;nbsp; I want each row of the ForEach to result in a new line in the target file.&amp;nbsp;&amp;nbsp;&amp;nbsp; I want the value of ForEach to get used and then concatenate a globalMap Variable and a context variable to that value before writing it as a line.&lt;BR /&gt;IM set up like this:&lt;BR /&gt;&lt;BR /&gt;tForEach--&amp;gt;tIteratetoFlow-&amp;gt;tFileOutputExcel&lt;BR /&gt;I have a list of values set up in my ForEach and a column set up in the IterateToFlow and Excel file.&amp;nbsp;&amp;nbsp; The column in Iterate to Flow has this in its value&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;globalMap.get("tForeach_1_CURRENT_VALUE")&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;Every time i run I error with this on the For Each&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;Error Line: 602&lt;BR /&gt;Detail Message: Type mismatch: cannot convert from Object to String&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;What am i doing wrong?&amp;nbsp;&amp;nbsp; Should i be using tJavaRow or tJavaFlexInstead?&lt;BR /&gt;&lt;BR /&gt;If so , what is the general method?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 01:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tForEach-cant-capture-values/m-p/2316660#M87187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T01:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: tForEach - cant capture values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tForEach-cant-capture-values/m-p/2316661#M87188</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;Set the expression as: 
&lt;BR /&gt;((String)globalMap.get("tForeach_1_CURRENT_VALUE")) 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 18 Jan 2017 01:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tForEach-cant-capture-values/m-p/2316661#M87188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T01:42:35Z</dc:date>
    </item>
  </channel>
</rss>

