<?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 Retrieving GlobalVar setted in a tSetGlobalVar in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Retrieving-GlobalVar-setted-in-a-tSetGlobalVar/m-p/2310608#M81719</link>
    <description>Hi,
&lt;BR /&gt;I try to understand how the tSetGlobalVar works.
&lt;BR /&gt;I've created a job for testing (see fig1), with 
&lt;BR /&gt;- a tFileInputProperties reading a properties file with 2 couple (key, value) : "chargement.vip.mode=load-after" and "chargement.vip.date=25-11-2009"
&lt;BR /&gt;- a tSetGlobal var using the main row to set 2 var in the globalMap
&lt;BR /&gt;- a tJava that prints to 2 globalMap var in the console
&lt;BR /&gt;
&lt;BR /&gt;When i see the generated code for the tSetGlobal, i can see that :
&lt;BR /&gt;globalMap.put(row6.key, row6.value);
&lt;BR /&gt;So in the tJava, i try to retrieve the value i put :
&lt;BR /&gt;System.out.println("Mode chargement -test : "+(String) globalMap.get("chargement.vip.mode"));
&lt;BR /&gt;
&lt;BR /&gt;Then i execute : the value displayed is null !!
&lt;BR /&gt;I tried to connect the tSetGlobalVar to a tLogRow, and when i do that the console displays :
&lt;BR /&gt;chargement.vip.mode|load-after
&lt;BR /&gt;chargement.vip.date|25-11-2009
&lt;BR /&gt;So, how can i do to retrieve in my tJava and in my other component such as the tMap, the values setted in the tSetGlobalVar component ??
&lt;BR /&gt;I join screenshots.
&lt;BR /&gt;
&lt;BR /&gt;Thanks in advance !!</description>
    <pubDate>Sat, 16 Nov 2024 13:36:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:36:26Z</dc:date>
    <item>
      <title>Retrieving GlobalVar setted in a tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieving-GlobalVar-setted-in-a-tSetGlobalVar/m-p/2310608#M81719</link>
      <description>Hi,
&lt;BR /&gt;I try to understand how the tSetGlobalVar works.
&lt;BR /&gt;I've created a job for testing (see fig1), with 
&lt;BR /&gt;- a tFileInputProperties reading a properties file with 2 couple (key, value) : "chargement.vip.mode=load-after" and "chargement.vip.date=25-11-2009"
&lt;BR /&gt;- a tSetGlobal var using the main row to set 2 var in the globalMap
&lt;BR /&gt;- a tJava that prints to 2 globalMap var in the console
&lt;BR /&gt;
&lt;BR /&gt;When i see the generated code for the tSetGlobal, i can see that :
&lt;BR /&gt;globalMap.put(row6.key, row6.value);
&lt;BR /&gt;So in the tJava, i try to retrieve the value i put :
&lt;BR /&gt;System.out.println("Mode chargement -test : "+(String) globalMap.get("chargement.vip.mode"));
&lt;BR /&gt;
&lt;BR /&gt;Then i execute : the value displayed is null !!
&lt;BR /&gt;I tried to connect the tSetGlobalVar to a tLogRow, and when i do that the console displays :
&lt;BR /&gt;chargement.vip.mode|load-after
&lt;BR /&gt;chargement.vip.date|25-11-2009
&lt;BR /&gt;So, how can i do to retrieve in my tJava and in my other component such as the tMap, the values setted in the tSetGlobalVar component ??
&lt;BR /&gt;I join screenshots.
&lt;BR /&gt;
&lt;BR /&gt;Thanks in advance !!</description>
      <pubDate>Sat, 16 Nov 2024 13:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieving-GlobalVar-setted-in-a-tSetGlobalVar/m-p/2310608#M81719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving GlobalVar setted in a tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieving-GlobalVar-setted-in-a-tSetGlobalVar/m-p/2310609#M81720</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;So, how can i do to retrieve in my tJava and in my other component such as the tMap, the values setted in the tSetGlobalVar component ??&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;On the next subjob, you can get the value of global variable on other component such as tJava, tMap. 
&lt;BR /&gt;for example: 
&lt;BR /&gt;tFileInputDelimited---main--&amp;gt;tSetGlobalVar 
&lt;BR /&gt; | 
&lt;BR /&gt;onSubJobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tJava 
&lt;BR /&gt;on tJava: 
&lt;BR /&gt; 
&lt;PRE&gt;System.out.println("Mode chargement -test : "+(String) globalMap.get("chargement.vip.mode"));&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Sat, 16 Jan 2010 05:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieving-GlobalVar-setted-in-a-tSetGlobalVar/m-p/2310609#M81720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-16T05:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving GlobalVar setted in a tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieving-GlobalVar-setted-in-a-tSetGlobalVar/m-p/2310610#M81721</link>
      <description>hi 
&lt;BR /&gt;
&lt;BR /&gt;I am trying to use the set global variable "myKey" in the place of tFileinputdelimited Field Separator part 
&lt;BR /&gt;but im getting the following error 
&lt;BR /&gt; "Parameter can't be null."
&lt;BR /&gt;but the value is set properly . how to use "myKey" in this component</description>
      <pubDate>Thu, 23 Jan 2014 09:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieving-GlobalVar-setted-in-a-tSetGlobalVar/m-p/2310610#M81721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T09:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving GlobalVar setted in a tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieving-GlobalVar-setted-in-a-tSetGlobalVar/m-p/2310611#M81722</link>
      <description>Hi naranibhanu 
&lt;BR /&gt;Please describes your problem with more details, a screenshot of your job is helpful for us to address the issue. It is better to open a new topic for your problem, it is more easy for us to follow up the topic. 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 24 Jan 2014 13:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieving-GlobalVar-setted-in-a-tSetGlobalVar/m-p/2310611#M81722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-24T13:56:35Z</dc:date>
    </item>
  </channel>
</rss>

