<?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: [resolved] How to pass iteration value to new tmysqlinput? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-iteration-value-to-new-tmysqlinput/m-p/2285507#M59129</link>
    <description>hi,&lt;BR /&gt;as you're using flowToIterate , each attribute is stored in globalMap.&lt;BR /&gt;To retrieve row1.id you have to retrieve value in that globalMap&lt;BR /&gt;replace row1.id =&amp;gt; (Integer)globalMap.get("row1.id")&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
    <pubDate>Mon, 13 Apr 2015 15:16:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-13T15:16:07Z</dc:date>
    <item>
      <title>[resolved] How to pass iteration value to new tmysqlinput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-iteration-value-to-new-tmysqlinput/m-p/2285506#M59128</link>
      <description>I'm using the following scenario which works ok (in get_cross_film I use: voorstelling.`zaal_id` IN ("+row1.id+") for iteration) 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCzi.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135071i7DABC3A8FB3A8BF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCzi.jpg" alt="0683p000009MCzi.jpg" /&gt;&lt;/span&gt;I'm trying to pass the row1.id to a new tmysqlinput with an IF statement (((Integer)globalMap.get("tMysqlInput_1_NB_LINE")) &amp;lt; 1). I want the scenario like this: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDKF.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146766i585C0B9E30BACA95/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDKF.jpg" alt="0683p000009MDKF.jpg" /&gt;&lt;/span&gt;In the 2nd tmysqlinput query (test_get_cross) I also use voorstelling.`zaal_id` IN ("+row1.id+") but i can imagine that this will not work because it's not in the same flow, I receive the error: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD9t.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150113iFEAA909DD9A4141A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD9t.jpg" alt="0683p000009MD9t.jpg" /&gt;&lt;/span&gt; 
&lt;BR /&gt;How can I pass the id value to the 2nd tmysqlinput query to work? 
&lt;BR /&gt;Remco</description>
      <pubDate>Mon, 13 Apr 2015 13:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-iteration-value-to-new-tmysqlinput/m-p/2285506#M59128</guid>
      <dc:creator>Remco1</dc:creator>
      <dc:date>2015-04-13T13:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass iteration value to new tmysqlinput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-iteration-value-to-new-tmysqlinput/m-p/2285507#M59129</link>
      <description>hi,&lt;BR /&gt;as you're using flowToIterate , each attribute is stored in globalMap.&lt;BR /&gt;To retrieve row1.id you have to retrieve value in that globalMap&lt;BR /&gt;replace row1.id =&amp;gt; (Integer)globalMap.get("row1.id")&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Mon, 13 Apr 2015 15:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-iteration-value-to-new-tmysqlinput/m-p/2285507#M59129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-13T15:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass iteration value to new tmysqlinput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-iteration-value-to-new-tmysqlinput/m-p/2285508#M59130</link>
      <description>I've tried the following without result:&lt;BR /&gt;select zaal.naam_intern from zaal where zaal.id = &amp;nbsp;(Integer)globalMap.get("row1.id")&amp;nbsp;&lt;BR /&gt;I receive an syntax error:&lt;BR /&gt;Exception in component tMysqlInput_2&lt;BR /&gt;com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Integer)globalMap.get("row1.id")' at line 1&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method).....&lt;BR /&gt;(e.g. select zaal.naam_intern from zaal where zaal.id = "1" returns a value)&lt;BR /&gt;I've tried different scenarios with qoutations to no avail, how can I make this work?&lt;BR /&gt;Remco</description>
      <pubDate>Tue, 14 Apr 2015 09:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-iteration-value-to-new-tmysqlinput/m-p/2285508#M59130</guid>
      <dc:creator>Remco1</dc:creator>
      <dc:date>2015-04-14T09:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass iteration value to new tmysqlinput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-iteration-value-to-new-tmysqlinput/m-p/2285509#M59131</link>
      <description>fixed it by using the following:&lt;BR /&gt;"select zaal.naam_intern from zaal where zaal.id &amp;nbsp;= '" + ((Integer)globalMap.get("row1.id")) + "'"</description>
      <pubDate>Tue, 14 Apr 2015 12:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-iteration-value-to-new-tmysqlinput/m-p/2285509#M59131</guid>
      <dc:creator>Remco1</dc:creator>
      <dc:date>2015-04-14T12:20:38Z</dc:date>
    </item>
  </channel>
</rss>

