<?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: Loading context variables with tContextLoad in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-variables-with-tContextLoad/m-p/2258985#M40602</link>
    <description>Hi there,&lt;BR /&gt;When I want to load variables whose origin context information from a file or query fields, you are saving a tJavaRow like this:&lt;BR /&gt;context.fileDate = row2.Columna3;&lt;BR /&gt;If you want to know the properties of name and size of a file, you can use a tfileproperties and uploads the information automatically.&lt;BR /&gt;Greetings.</description>
    <pubDate>Wed, 09 Mar 2016 12:30:27 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2016-03-09T12:30:27Z</dc:date>
    <item>
      <title>Loading context variables with tContextLoad</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-variables-with-tContextLoad/m-p/2258983#M40600</link>
      <description>Hi, 
&lt;BR /&gt;I try to load two variables using tContextLoad (a filename defined as String and a date defined as Date). 
&lt;BR /&gt;Apparently, the tContextLoad schema is defined as key (String), value (String). And I did not find a way to change the type of value field which should have been defined as Object to support any kind of type. 
&lt;BR /&gt;Maybe I missed somethig here, so I am very interested if there is a way to change the String type of the value field? 
&lt;BR /&gt;Thank you for your reply. 
&lt;BR /&gt;Regards. 
&lt;BR /&gt;Bruno</description>
      <pubDate>Wed, 09 Mar 2016 09:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loading-context-variables-with-tContextLoad/m-p/2258983#M40600</guid>
      <dc:creator>blh</dc:creator>
      <dc:date>2016-03-09T09:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Loading context variables with tContextLoad</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-variables-with-tContextLoad/m-p/2258984#M40601</link>
      <description>Hi blh, 
&lt;BR /&gt;I created a sample job which loaded the context from a file.&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDPl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134251i30A8F88FCCD0B336/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDPl.png" alt="0683p000009MDPl.png" /&gt;&lt;/span&gt;I added 2 context variables to this job one of type String and the other of type Date. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDSF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136331iDB88141A51DCBD18/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDSF.png" alt="0683p000009MDSF.png" /&gt;&lt;/span&gt;I then created the config file at the specified location with the values as follows: 
&lt;BR /&gt;#--------------------------------- 
&lt;BR /&gt;# Job context params 
&lt;BR /&gt;#--------------------------------- 
&lt;BR /&gt;name==Ketan 
&lt;BR /&gt;date_of_birth==1979-10-13 10:30:00 
&lt;BR /&gt;My job contained only a tJava component that printed the values of these context variables. 
&lt;BR /&gt;The output was as follows: 
&lt;BR /&gt; 
&lt;I&gt;&lt;FONT color="#3366ff"&gt;Starting job ContextLoad at 17:29 09/03/2016.&lt;/FONT&gt;&lt;/I&gt; 
&lt;BR /&gt; connecting to socket on port 3452 
&lt;BR /&gt; connected 
&lt;BR /&gt;Name loaded from config file is Ketan 
&lt;BR /&gt;DOB loaded from config file is Sat Oct 13 10:30:00 IST 1979 
&lt;BR /&gt; disconnected 
&lt;BR /&gt; 
&lt;I&gt;&lt;FONT color="#3366ff"&gt;Job ContextLoad ended at 17:29 09/03/2016. &lt;/FONT&gt;&lt;/I&gt; 
&lt;BR /&gt;I think for the date context variable it accepts only the 'yyyy-MM-dd HH:mm:ss' format by default.</description>
      <pubDate>Wed, 09 Mar 2016 12:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loading-context-variables-with-tContextLoad/m-p/2258984#M40601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T12:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loading context variables with tContextLoad</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-variables-with-tContextLoad/m-p/2258985#M40602</link>
      <description>Hi there,&lt;BR /&gt;When I want to load variables whose origin context information from a file or query fields, you are saving a tJavaRow like this:&lt;BR /&gt;context.fileDate = row2.Columna3;&lt;BR /&gt;If you want to know the properties of name and size of a file, you can use a tfileproperties and uploads the information automatically.&lt;BR /&gt;Greetings.</description>
      <pubDate>Wed, 09 Mar 2016 12:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loading-context-variables-with-tContextLoad/m-p/2258985#M40602</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-03-09T12:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loading context variables with tContextLoad</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-variables-with-tContextLoad/m-p/2258986#M40603</link>
      <description>Hi, 
&lt;BR /&gt;Thanks for your reply. 
&lt;BR /&gt;Actually, my need is to propagate the value of a context variable (type Date) from a father job to a child job, and this date is set dynamically by the father job inside an iteration before calling the child job. 
&lt;BR /&gt;So here is the sequence of the father job: 
&lt;BR /&gt;&amp;nbsp; ---iterate---&amp;gt;&amp;nbsp; &amp;nbsp; ---row---&amp;gt;&amp;nbsp; &amp;nbsp; ---OnComponentOk---&amp;gt; 
&lt;BR /&gt;note: tFixedFlowInput is used to initialize the date depending on the current iteration. 
&lt;BR /&gt;As I mentioned in my first post, the tContextLoad component requires a schema with 2 fields key(String) and value(String), which is not interesting in my case. 
&lt;BR /&gt;So, I am going to replace the tContextLoad component by a tJavaRow and initialize my variable as proposed: 
&lt;BR /&gt;context.myDate = row.dateValue; 
&lt;BR /&gt;Anyway, thanks for your help. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Bruno 
&lt;BR /&gt;Thanks for your help. 
&lt;BR /&gt;Bruno</description>
      <pubDate>Wed, 09 Mar 2016 14:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loading-context-variables-with-tContextLoad/m-p/2258986#M40603</guid>
      <dc:creator>blh</dc:creator>
      <dc:date>2016-03-09T14:14:24Z</dc:date>
    </item>
  </channel>
</rss>

