<?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 Get global var value in THMAP in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-global-var-value-in-THMAP/m-p/2325175#M94801</link>
    <description>&lt;P&gt;Hi guys,&lt;BR /&gt;sorry if my question was already answered, but i found nothing talking about the way to get tSetGlobalVar value into THMAP.&lt;BR /&gt;I tried functions : special-&amp;gt;GetVariable, and general-&amp;gt;Constant by 2 ways : just writing var name, and calling globalMap getter :&lt;/P&gt; 
&lt;PRE&gt;(String)globalMap.get("my var")&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;Have a good day&lt;BR /&gt;ps: sorry for my poor english&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2015 13:08:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-29T13:08:03Z</dc:date>
    <item>
      <title>Get global var value in THMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-global-var-value-in-THMAP/m-p/2325175#M94801</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;sorry if my question was already answered, but i found nothing talking about the way to get tSetGlobalVar value into THMAP.&lt;BR /&gt;I tried functions : special-&amp;gt;GetVariable, and general-&amp;gt;Constant by 2 ways : just writing var name, and calling globalMap getter :&lt;/P&gt; 
&lt;PRE&gt;(String)globalMap.get("my var")&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;Have a good day&lt;BR /&gt;ps: sorry for my poor english&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 13:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-global-var-value-in-THMAP/m-p/2325175#M94801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-29T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get global var value in THMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-global-var-value-in-THMAP/m-p/2325176#M94802</link>
      <description>What you have here, is the correct way to get something off the globalMap, if the key value is "my var". 
&lt;BR /&gt;You should null test and type check as well. 
&lt;BR /&gt;If it is not working for you, then the following method is a quick and dirty way of seeing what is on the globalMap and this may help you to track down a missing global. 
&lt;BR /&gt;You can either create a routine or put the relevant code in a tJava. 
&lt;BR /&gt; 
&lt;BR /&gt;/** 
&lt;BR /&gt;* Shows they keys of a Map instance.&amp;nbsp; 
&lt;BR /&gt;* @param mapName 
&lt;BR /&gt;* @param map 
&lt;BR /&gt;* usage showMapKeys("globalMap" globalMap); 
&lt;BR /&gt;*/ 
&lt;BR /&gt;public static void showMapKeys(String mapName, java.util.Map map) { 
&lt;BR /&gt;java.util.Iterator iterator = map.keySet().iterator(); 
&lt;BR /&gt;java.util.List&amp;lt;String&amp;gt; keys = new java.util.ArrayList&amp;lt;String&amp;gt;(); 
&lt;BR /&gt; 
&lt;BR /&gt;while(iterator.hasNext()) keys.add(iterator.next().toString()); 
&lt;BR /&gt;java.util.Collections.sort(keys); 
&lt;BR /&gt; 
&lt;BR /&gt;for(int i = 0; i &amp;lt; keys.size(); i++) 
&lt;BR /&gt;System.out.println(mapName + ": " + i + ": " + keys.get(i)); 
&lt;BR /&gt;&amp;nbsp;//Object value = globalMap.get(key); 
&lt;BR /&gt;}</description>
      <pubDate>Tue, 29 Dec 2015 14:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-global-var-value-in-THMAP/m-p/2325176#M94802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-29T14:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get global var value in THMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-global-var-value-in-THMAP/m-p/2325177#M94803</link>
      <description>Thank you tal00000,&amp;nbsp;&lt;BR /&gt;I have already checked my map content before. My question was : How get globalMap value when using thmap componant.&lt;BR /&gt;Have a nice day</description>
      <pubDate>Wed, 30 Dec 2015 08:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-global-var-value-in-THMAP/m-p/2325177#M94803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-30T08:22:50Z</dc:date>
    </item>
  </channel>
</rss>

