<?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: tMap lookup inner join with DB where clause using globalMap.get() not working in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205776#M6080</link>
    <description>Thanks for your help. So just to clarify do I input my lookup ID field in
&lt;BR /&gt;expression field and just name it, then use it in the query field of the
&lt;BR /&gt;tPostgresqlinput component, "...WHERE myIDField = "myKeyName", or do I have
&lt;BR /&gt;to specifically use globalMap.put("myKeyName") in the expression key name
&lt;BR /&gt;field on tMap lookup panel?
&lt;BR /&gt;
&lt;BR /&gt;Cheers.
&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Sep 2018 08:38:57 GMT</pubDate>
    <dc:creator>synfield</dc:creator>
    <dc:date>2018-09-20T08:38:57Z</dc:date>
    <item>
      <title>tMap lookup inner join with DB where clause using globalMap.get() not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205774#M6078</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I've been trying to do a DB table lookup based on the ID that is returning from a REST service, to avoid duplication&amp;nbsp;of records, in jobs already run.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, I can't get the lookup working the REST record has an ID "code" and I look this up in the DB table using "SELECT...WHERE = '" + (String)globalMap.get("row22.code") + "' etc.. to see if this record already exists in the DB table to avoid duplication, but is not working. The&amp;nbsp;&lt;SPAN&gt;(String)&lt;/SPAN&gt;globalMap&lt;SPAN&gt;.get("row22.code") comes from the tFlowToIterate ----&amp;gt; tIterateToFlow components as below;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;The SQL Select statement screenshot,&amp;nbsp;is taken from the Query textbox&amp;nbsp;in the tPostgresqlInput component&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-09-20 at 9.53.32 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M05a.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127935i3D01094877B24167/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M05a.png" alt="0683p000009M05a.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-09-20 at 10.04.56 AM.png" style="width: 727px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0Ll.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156742iF50A52CFB7D58C2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0Ll.png" alt="0683p000009M0Ll.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I can just do a SELECT all, and load table in memory to do a lookup, which works, but I don't think that's&amp;nbsp;very efficient!&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Synfield.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 23:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205774#M6078</guid>
      <dc:creator>synfield</dc:creator>
      <dc:date>2018-09-19T23:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: tMap lookup inner join with DB where clause using globalMap.get() not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205775#M6079</link>
      <description>in you tMap select "reload for each row"&lt;BR /&gt;add lockup key using +&lt;BR /&gt;and use this globlaMap key in your sql query</description>
      <pubDate>Thu, 20 Sep 2018 08:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205775#M6079</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-20T08:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: tMap lookup inner join with DB where clause using globalMap.get() not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205776#M6080</link>
      <description>Thanks for your help. So just to clarify do I input my lookup ID field in
&lt;BR /&gt;expression field and just name it, then use it in the query field of the
&lt;BR /&gt;tPostgresqlinput component, "...WHERE myIDField = "myKeyName", or do I have
&lt;BR /&gt;to specifically use globalMap.put("myKeyName") in the expression key name
&lt;BR /&gt;field on tMap lookup panel?
&lt;BR /&gt;
&lt;BR /&gt;Cheers.
&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Sep 2018 08:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205776#M6080</guid>
      <dc:creator>synfield</dc:creator>
      <dc:date>2018-09-20T08:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: tMap lookup inner join with DB where clause using globalMap.get() not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205777#M6081</link>
      <description>you have to use xxx where field1=" + ((String)globalMap.get("yourKey")) + " and xxx</description>
      <pubDate>Thu, 20 Sep 2018 08:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205777#M6081</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-20T08:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: tMap lookup inner join with DB where clause using globalMap.get() not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205778#M6082</link>
      <description>Apologies for the confusion, but its because im already created a globalMap&lt;BR /&gt;var for this ID in tFlowToIterate. So your saying I need to create another&lt;BR /&gt;one in tMap called "myKey" without using globalMap.put("myKey")?&lt;BR /&gt;&lt;BR /&gt;Cheers. Appreciate your help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Sep 2018 09:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205778#M6082</guid>
      <dc:creator>synfield</dc:creator>
      <dc:date>2018-09-20T09:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: tMap lookup inner join with DB where clause using globalMap.get() not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205779#M6083</link>
      <description>yes have a look to this sample:&lt;BR /&gt;&lt;A href="https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/YWmAGtLfTRSB8ciEBqkncQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/YWmAGtLfTRSB8ciEBqkncQ&lt;/A&gt;</description>
      <pubDate>Thu, 20 Sep 2018 09:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-lookup-inner-join-with-DB-where-clause-using-globalMap-get/m-p/2205779#M6083</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-20T09:55:29Z</dc:date>
    </item>
  </channel>
</rss>

