<?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: tJavaRow does not store ontext variables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254444#M37449</link>
    <description>Hi Shong, 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you for a quick reply. It worked, order on subjobs was switched. 
&lt;BR /&gt;It is working again. 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Tanja</description>
    <pubDate>Thu, 09 Jul 2020 12:29:30 GMT</pubDate>
    <dc:creator>tanjaj</dc:creator>
    <dc:date>2020-07-09T12:29:30Z</dc:date>
    <item>
      <title>tJavaRow does not store ontext variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254440#M37445</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I have a talend job which was running just fine until today. I would read date from the DB, save it as a variable and later it would use that variable in file naming, like this:&lt;/P&gt; 
&lt;PRE&gt;context.current_filedirectory + "/exported_xml_data/"+"oms-extract-orders_"+ context.code_name +"_"+ context.site_name+"_" +context.min_Date.replace("-","")  +"-"+ context.max_Date.replace("-","") +".xml"&lt;/PRE&gt; 
&lt;P&gt;I repeat, this was working correctly.&lt;/P&gt; 
&lt;P&gt;This file name should be like this :&lt;/P&gt; 
&lt;PRE&gt;oms-extract-orders_sitename_20200415-20200512.xml&lt;/PRE&gt; 
&lt;P&gt;And this is what it gives now:&lt;/P&gt; 
&lt;PRE&gt;oms-extract-orders_sitename_context.min_Date-context.max_Date.xml&lt;/PRE&gt; 
&lt;P&gt;Problem occurred in tJavaRow component.&lt;/P&gt; 
&lt;P&gt;It doesn't store input values as variable as it suppose to. This is the code in tJavaRow component:&lt;/P&gt; 
&lt;PRE&gt;context.min_Date = input_row.min_Date;
context.max_Date = input_row.max_Date;&lt;/PRE&gt; 
&lt;P&gt;In attachment is screenshot of my job. I didn't do any updates.&lt;/P&gt; 
&lt;P&gt;Any idea what went wrong?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254440#M37445</guid>
      <dc:creator>tanjaj</dc:creator>
      <dc:date>2024-11-16T01:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow does not store ontext variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254441#M37446</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;Change your job design to as seen below to make sure the context variables are initialized before they are used. &lt;BR /&gt;read context--main--Save context&lt;BR /&gt;|onsubobok&lt;BR /&gt;DBinput--main--tJavaRow&lt;BR /&gt;|onsubjobok&lt;BR /&gt;DBInput--main--output XML files. &lt;BR /&gt;&lt;BR /&gt;Do you set default value to context variables? It seems it uses default value something like "context.max_Date"&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 11:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254441#M37446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-09T11:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow does not store ontext variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254442#M37447</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;Change your job design to as seen below to make sure the context variables are initialized before they are used. &lt;BR /&gt;read context--main--Save context&lt;BR /&gt;|onsubobok&lt;BR /&gt;DBinput--main--tJavaRow&lt;BR /&gt;|onsubjobok&lt;BR /&gt;DBInput--main--output XML files. &lt;BR /&gt;&lt;BR /&gt;Do you set default value to context variables? It seems it uses default value something like "context.max_Date"&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 11:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254442#M37447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-09T11:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow does not store ontext variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254443#M37448</link>
      <description>Hi Shong, 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you for a quick reply. It worked, order on subjobs was switched. 
&lt;BR /&gt;It is working again. 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Tanja</description>
      <pubDate>Thu, 09 Jul 2020 12:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254443#M37448</guid>
      <dc:creator>tanjaj</dc:creator>
      <dc:date>2020-07-09T12:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow does not store ontext variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254444#M37449</link>
      <description>Hi Shong, 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you for a quick reply. It worked, order on subjobs was switched. 
&lt;BR /&gt;It is working again. 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Tanja</description>
      <pubDate>Thu, 09 Jul 2020 12:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-does-not-store-ontext-variables/m-p/2254444#M37449</guid>
      <dc:creator>tanjaj</dc:creator>
      <dc:date>2020-07-09T12:29:30Z</dc:date>
    </item>
  </channel>
</rss>

