<?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: set variable in context with tJava fails when using tContextDump in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315839#M86447</link>
    <description>Thank you very much for that answer, it is 4 hours i am fighting with forwarding context from child to parent and was not able to do it because of that context.synchronizeContext()...
&lt;BR /&gt;This post should be awarded !
&lt;BR /&gt;thanks again</description>
    <pubDate>Fri, 15 Oct 2010 17:12:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-10-15T17:12:15Z</dc:date>
    <item>
      <title>set variable in context with tJava fails when using tContextDump</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315835#M86443</link>
      <description>hi, 
&lt;BR /&gt;i have a child package that needs to check for folders and return these found directories as variables to the parent package, using: 
&lt;BR /&gt;tContextDump -&amp;gt; tBufferOutput 
&lt;BR /&gt;the problem comes when setting the values for these variables. 
&lt;BR /&gt;i have a tJava that sets values for these variables as: 
&lt;BR /&gt;context.variableA = "c:/some_folder/"; 
&lt;BR /&gt;i have a tFileExists that checks for the existence of this folder - and returns true 
&lt;BR /&gt;but when using tContextDump this very same variable returns the value &amp;lt;null&amp;gt; 
&lt;BR /&gt;how is that possible. 
&lt;BR /&gt;it seems to be the same issue raised on this other forum topic: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCnN4CAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/set-context-parameters-dynamically-in-tJava/td-p/88237&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;is there some work around this problem??? 
&lt;BR /&gt;thanks, 
&lt;BR /&gt;Nicolas</description>
      <pubDate>Sat, 16 Nov 2024 13:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315835#M86443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: set variable in context with tJava fails when using tContextDump</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315836#M86444</link>
      <description>I can't any more find where I came up with this answer but apparently context values are stored in more than one place and tContextDump picks up only those values defined when the job begins so if you set context values dynamically using tJava you need to follow with the following statement so that tContextDump will use the new values: 
&lt;BR /&gt; 
&lt;PRE&gt;context.synchronizeContext();&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Jun 2010 01:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315836#M86444</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-06-07T01:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: set variable in context with tJava fails when using tContextDump</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315837#M86445</link>
      <description>Many thanks Alevy,&lt;BR /&gt;i will try your suggestion.</description>
      <pubDate>Mon, 07 Jun 2010 14:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315837#M86445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-07T14:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: set variable in context with tJava fails when using tContextDump</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315838#M86446</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I can't any more find where I came up with this answer but apparently context values are stored in more than one place and tContextDump picks up only those values defined when the job begins so if you set context values dynamically using tJava you need to follow with the following statement so that tContextDump will use the new values:&lt;BR /&gt;&lt;PRE&gt;context.synchronizeContext();&lt;/PRE&gt;&lt;BR /&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;THANKS! I've been going around in circles with this for the last 24 hours. 
&lt;BR /&gt;This needs to be a sticky post - or - better yet - they need to add that one line of code to the tContextDump component. 
&lt;BR /&gt;But, in case someone actually wants it to work that way, just add a Synchronize checkbox to the Basic Settings.</description>
      <pubDate>Sun, 03 Oct 2010 14:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315838#M86446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-03T14:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: set variable in context with tJava fails when using tContextDump</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315839#M86447</link>
      <description>Thank you very much for that answer, it is 4 hours i am fighting with forwarding context from child to parent and was not able to do it because of that context.synchronizeContext()...
&lt;BR /&gt;This post should be awarded !
&lt;BR /&gt;thanks again</description>
      <pubDate>Fri, 15 Oct 2010 17:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315839#M86447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-15T17:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: set variable in context with tJava fails when using tContextDump</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315840#M86448</link>
      <description>This post saves my life the 2012-12-21 (le 21 dec-2012) Isnt it paradoxal ?</description>
      <pubDate>Fri, 21 Dec 2012 09:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-variable-in-context-with-tJava-fails-when-using-tContextDump/m-p/2315840#M86448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-21T09:17:11Z</dc:date>
    </item>
  </channel>
</rss>

