<?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 from two tSetGlobalVar in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-from-two-tSetGlobalVar/m-p/2372440#M135278</link>
    <description>&lt;P&gt;tSetGlobalVar puts the var into a map that you can use anywhere in your job, you dont need to connect that component to anything.&amp;nbsp; You just refer to the variable by the key using the following syntax (casting to a string in this case):&lt;/P&gt;
&lt;PRE&gt;(String) globalMap.get("key")&lt;/PRE&gt;
&lt;P&gt;Where "key" is the name of the key you set in your tSetGlobalVar component.&lt;/P&gt;
&lt;P&gt;So if you want to use this value in your tMap, in the output column you would put the expression above&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2017 19:37:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-06T19:37:41Z</dc:date>
    <item>
      <title>tMap from two tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-from-two-tSetGlobalVar/m-p/2372439#M135277</link>
      <description>&lt;P&gt;I have two tSetGlobalVar in which I store two different columns. NB_DNCL_OLD and NB_DNCL_NEW.&lt;/P&gt;
&lt;P&gt;I am trying to connect them to a tMap component in order to have a single table as output, adding an expression for the difference between both integer variables. I am able to connect NB_DNCL_OLD as row3 (Main) to tMap but I am not allowed to connect NB_DNCL_NEW to the same tMap.&lt;/P&gt;
&lt;P&gt;Should I use any component between the tSetGlobalVar and the tMap? What am I doing wrong? (I am new to Talend and I have no Java knowledge).&lt;/P&gt;
&lt;P&gt;I have just recreated the tsetglobalvar and I have connected them to the tMap without connecting them to their sources (2 tFlowIterate) and this time I was able to connect the second one to the tMap through a lookup but, if I try to reconnect the tsetglobalvars to their sources I have the same problem: I am able to connect just the first as Main and I am not allowed to connect the second. Thanks for your advice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 16:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-from-two-tSetGlobalVar/m-p/2372439#M135277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-06T16:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: tMap from two tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-from-two-tSetGlobalVar/m-p/2372440#M135278</link>
      <description>&lt;P&gt;tSetGlobalVar puts the var into a map that you can use anywhere in your job, you dont need to connect that component to anything.&amp;nbsp; You just refer to the variable by the key using the following syntax (casting to a string in this case):&lt;/P&gt;
&lt;PRE&gt;(String) globalMap.get("key")&lt;/PRE&gt;
&lt;P&gt;Where "key" is the name of the key you set in your tSetGlobalVar component.&lt;/P&gt;
&lt;P&gt;So if you want to use this value in your tMap, in the output column you would put the expression above&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 19:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-from-two-tSetGlobalVar/m-p/2372440#M135278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-06T19:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: tMap from two tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-from-two-tSetGlobalVar/m-p/2372441#M135279</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000005HwGQAA0"&gt;@evansdar&lt;/A&gt;&amp;nbsp;Thank you for your answer! &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;I have just erased the tMap and I am using my global variables and an expression to calculate the difference between them directly into the tSendMail component's message body. To have a little table with my current 3 variables I just set the MIME subtype to HTML and will insert the code.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 21:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-from-two-tSetGlobalVar/m-p/2372441#M135279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-06T21:03:41Z</dc:date>
    </item>
  </channel>
</rss>

