<?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 value to Context Variable dynamically in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361276#M125674</link>
    <description>Once you've loaded your Context, you can pass it through tRunJob either individually or by checking "Transmit whole context". 
&lt;BR /&gt;You do need to add the context variables to each Job that needs to reference them.</description>
    <pubDate>Thu, 21 Apr 2016 15:17:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-21T15:17:50Z</dc:date>
    <item>
      <title>Set value to Context Variable dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361268#M125666</link>
      <description>Hi,
&lt;BR /&gt;i want to set value to Context Variable dynamically and require to use that context variable in number of jobs
&lt;BR /&gt;say for example:
&lt;BR /&gt;for example: context.date = date
&lt;BR /&gt;This variable(context.date) required to use in many jobs, can you please let me know how to implement this.
&lt;BR /&gt;i have tried below option it works only for corresponding job.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;please do the needful.</description>
      <pubDate>Thu, 21 Apr 2016 09:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361268#M125666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T09:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set value to Context Variable dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361269#M125667</link>
      <description>Hello kambham
&lt;BR /&gt;There is a component called tContextLoad which allows you to set context variables dynamically. It enable syou to read values from e.g. a file or DB and load them into the context. The schema which you need to give to tContextLoad is simply 2 strings: "key" and "value". It also allows you to add new variables.
&lt;BR /&gt;There is also the tContextDump component which allows you to dump the context for review.
&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Thu, 21 Apr 2016 10:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361269#M125667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T10:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set value to Context Variable dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361270#M125668</link>
      <description>Hi,&lt;BR /&gt;Thanks for your quick response.&lt;BR /&gt;As per your email i developed job to read date value from file and load them into the context using tContextLoad, see the below screen shot for your reference and result after executing job.&lt;BR /&gt;Starting job tcontext at 12:04 21/04/2016.&lt;BR /&gt; connecting to socket on port 3346&lt;BR /&gt; connected&lt;BR /&gt;tContextLoad_1 set key "date" with value&lt;B&gt; &lt;FONT color="#cc3333"&gt;"20151120&lt;/FONT&gt;&lt;/B&gt;&lt;FONT color="#cc3333"&gt;"&lt;/FONT&gt;&lt;BR /&gt; disconnected&lt;BR /&gt;Job tcontext ended at 12:04 21/04/2016. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But when trying to use this context value(date)-20151120 in another job, it passing null value instead of context value.&lt;BR /&gt;&lt;B&gt;&lt;FONT color="#cc3333"&gt;Can you please suggest weather my approach is correct or not?&lt;/FONT&gt;&lt;/B&gt;</description>
      <pubDate>Thu, 21 Apr 2016 12:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361270#M125668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set value to Context Variable dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361271#M125669</link>
      <description>Can you put a screenshot up of your job structure please? You say "&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;But when trying to use this context value(date)-20151120 in another job, it passing null value instead of context value."&lt;/FONT&gt;&lt;/FONT&gt;. Does that mean that you are trying to pass the context variable to a child job?</description>
      <pubDate>Thu, 21 Apr 2016 12:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361271#M125669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T12:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set value to Context Variable dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361272#M125670</link>
      <description>Hi,&lt;BR /&gt;my requirement is i want set value to Context Variable dynamically and then i want to you that Context Variable in different jobs, say for example job1, job2, job3.. jobn.&lt;BR /&gt;Thanks,</description>
      <pubDate>Thu, 21 Apr 2016 13:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361272#M125670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T13:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set value to Context Variable dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361273#M125671</link>
      <description>But how are you calling (starting) those jobs (1,2,3,etc) after the context variable has been set? You have to consider context variables to have a lifespan of an individual job, unless you actively pass them to a child job or write them to a file/db to be used elsewhere. You can't just set them in one job and expect them to be available in a disconnected job without doing anything</description>
      <pubDate>Thu, 21 Apr 2016 14:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361273#M125671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T14:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set value to Context Variable dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361274#M125672</link>
      <description>RHall is correct. Each job is an isolated java class. You have to dynamically read the context variables in each class/job using the method I described.</description>
      <pubDate>Thu, 21 Apr 2016 14:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361274#M125672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T14:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set value to Context Variable dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361275#M125673</link>
      <description>got it!! Thank you so much for your effort on this.</description>
      <pubDate>Thu, 21 Apr 2016 14:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361275#M125673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T14:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set value to Context Variable dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361276#M125674</link>
      <description>Once you've loaded your Context, you can pass it through tRunJob either individually or by checking "Transmit whole context". 
&lt;BR /&gt;You do need to add the context variables to each Job that needs to reference them.</description>
      <pubDate>Thu, 21 Apr 2016 15:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-value-to-Context-Variable-dynamically/m-p/2361276#M125674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T15:17:50Z</dc:date>
    </item>
  </channel>
</rss>

