<?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: Using tSetGlobalVar in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223976#M16865</link>
    <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;When I run the job null is printed out, even though the value for "FILE_EXISTS" is different. Please suggest&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hava you set a value to key 'FILE_EXISTS'? and the job should be:
&lt;BR /&gt;tSetGlobalVar--Onsubjobok--&amp;gt;tJava
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Wed, 13 May 2009 08:22:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-05-13T08:22:19Z</dc:date>
    <item>
      <title>Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223969#M16858</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I want to define a global variable for a whole job, but as I don't know the Java language, it's hard to find what's wrong.&lt;BR /&gt;I defined an object tSetGlobalVar_1 where I added a variable with key "filtre" associated with a value "PNOM". But how to use it, for example in a tJava object with a simple println ?&lt;BR /&gt;Thanks.&lt;BR /&gt;Thomas</description>
      <pubDate>Sat, 16 Nov 2024 14:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223969#M16858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223970#M16859</link>
      <description>You can try :  &lt;PRE&gt;System.out.println(globalMap.get("filtre"));&lt;/PRE&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 13 Feb 2008 12:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223970#M16859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-13T12:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223971#M16860</link>
      <description>Thanks, this solves my issues.</description>
      <pubDate>Wed, 13 Feb 2008 14:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223971#M16860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-13T14:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223972#M16861</link>
      <description>I need to fetch configuration values such as the database credentials from an xml file. Store these in global variables. &lt;BR /&gt;Then use the content of global variables in another job .&lt;BR /&gt;To implement this I used the following steps&lt;BR /&gt;1)  In Job one i used tFileInputXML ----&amp;gt; tJavaRow (store all values  in context) --- on component OK --&amp;gt; tSetGlobalVar ( store values from context to variable inside tGlobalVar)&lt;BR /&gt;&lt;BR /&gt;2)In job two I used  tRunJob (call job one) ------ on Component OK ------&amp;gt;tJava ( print all the global variables defined in job one)&lt;BR /&gt;Execution of job two prints null for all the global variables defined in job one.&lt;BR /&gt;Can any body let me know where might be the problem ? and provide me a sample job to implement this.&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Pravu Mishra.</description>
      <pubDate>Fri, 17 Oct 2008 12:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223972#M16861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-17T12:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223973#M16862</link>
      <description>you have to call the job 2 from the first one and set the Transmit Whole Context 
&lt;BR /&gt;cheers</description>
      <pubDate>Fri, 17 Oct 2008 13:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223973#M16862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-17T13:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223974#M16863</link>
      <description>Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;If you say job one must call job two then I feel there is no point to define job two. I can do all these in job one which I do in job two.&lt;BR /&gt;&lt;BR /&gt;I need to call the job one once from another dependant job. Job two is dependant on job one. Hence job one will be called from job two.&lt;BR /&gt;I may also call the job one from another job (job three) that is dependant on job one.&lt;BR /&gt;What you said may not be appropriate for this problem.&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Pravu Mishra</description>
      <pubDate>Fri, 17 Oct 2008 13:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223974#M16863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-17T13:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223975#M16864</link>
      <description>I am using tSetGlobalVar and tJava components.  One key "FILE_EXISTS" is defined in tSetGlobalVar, &lt;BR /&gt;and the code inside tJava component is     &lt;BR /&gt;System.out.println(globalMap.get("FILE_EXISTS")); &lt;BR /&gt;When I run the job null is printed out, even though the value for "FILE_EXISTS" is different.  Please suggest</description>
      <pubDate>Wed, 13 May 2009 08:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223975#M16864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-13T08:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223976#M16865</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;When I run the job null is printed out, even though the value for "FILE_EXISTS" is different. Please suggest&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hava you set a value to key 'FILE_EXISTS'? and the job should be:
&lt;BR /&gt;tSetGlobalVar--Onsubjobok--&amp;gt;tJava
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 13 May 2009 08:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223976#M16865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-13T08:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223977#M16866</link>
      <description>tSetGlobalVar-- Onsubjobok (this was missing in my job) --&amp;gt;tJava.
&lt;BR /&gt;After putting -- Onsubjobok --&amp;gt;tJava, it works. 
&lt;BR /&gt;Thanks a lot Shong.</description>
      <pubDate>Wed, 13 May 2009 08:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223977#M16866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-13T08:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223978#M16867</link>
      <description>I have a onejob where the tSetGlobalVar component is placed.  How do i set a value to key(tSetGlobalVar)n my onejob from my secondJob.  Please suggest.</description>
      <pubDate>Wed, 13 May 2009 08:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223978#M16867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-13T08:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223979#M16868</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I have a onejob where the tSetGlobalVar component is placed. How do i set a value to key(tSetGlobalVar)n my onejob from my secondJob. Please suggest.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;1)In onejob, define a context variable, eg:myVarName(string), set the value of key(tSetGlobalVar) as context.myVarName.
&lt;BR /&gt;2)In secondJob, use a tRunJob to run onejob, on tRunJob, set value to context variable defined in onejob.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 13 May 2009 10:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223979#M16868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-13T10:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223980#M16869</link>
      <description>Actually i am using the tRunJob to run the secondJob from my oneJob, and inside the secondJob i want to set the VALUE for KEY("FILE_EXISTS") inside the oneJob.  &lt;BR /&gt;I tried putting a code in tJava in secondJob as - globalMap.put("FILE_EXISTS", "TRUE");&lt;BR /&gt;But value returned will be null inside oneJob.  &lt;BR /&gt;Please suggest.</description>
      <pubDate>Wed, 13 May 2009 11:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223980#M16869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-13T11:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223981#M16870</link>
      <description>For solving these kind of issues, I used java singleton object and placed all the variables those are required in all or most of the jobs. The main job places the values in singleton object and other jobs those are called from main job uses the values placed in the singleton object.
&lt;BR /&gt;Example : The database credentials are placed in Singleton object and the oher sub jobs uses these database credential placed in Singleton object.
&lt;BR /&gt;Hope you know what is a singleton object. Incase you do not know what is a singleton object, then please get the information from net.
&lt;BR /&gt;There is an example job placed at 
&lt;A href="http://www.talendforge.org/exchange/tos/extension_view.php?eid=156" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/exchange/tos/extension_view.php?eid=156&lt;/A&gt; and it uses singleton object.
&lt;BR /&gt;I guess your problem will also be solved in case you use Singleton object and the example found at the above URL explanes it clearly.
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;Pravu Mishra.</description>
      <pubDate>Thu, 14 May 2009 07:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223981#M16870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-14T07:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223982#M16871</link>
      <description>I have a job where data is laoded from a CSV file into a MS SQL Server DB. Data is rejected from both the CSV and DB. I want to have a total count of rejected records.&lt;BR /&gt;CSV---&amp;gt;DB ----&amp;gt; (rejected) tjavaflex ----&amp;gt; report file&lt;BR /&gt;|&lt;BR /&gt;|&lt;BR /&gt;|&lt;BR /&gt;tjavaflex----&amp;gt; report file&lt;BR /&gt;My job will first reject the CSV records and then the DB ones. Can I get the count of Rejected Records and how to use it in tjavaflex component so that after a limit is reached, I end my job</description>
      <pubDate>Mon, 22 Jul 2013 06:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tSetGlobalVar/m-p/2223982#M16871</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-07-22T06:48:57Z</dc:date>
    </item>
  </channel>
</rss>

