<?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: Assigning context variables in tJavaRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212255#M9952</link>
    <description>Don't think this is the right way to do it as the conntexts will only have the value of the last mapping. Also tLogRow won't print the context values.</description>
    <pubDate>Wed, 05 Sep 2012 13:15:48 GMT</pubDate>
    <dc:creator>janhess</dc:creator>
    <dc:date>2012-09-05T13:15:48Z</dc:date>
    <item>
      <title>Assigning context variables in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212254#M9951</link>
      <description>Hi I'm trying to assign context variables in a tJavaRow with a tMap output.&lt;BR /&gt;My job is like this: &lt;BR /&gt;(process)--------tMap---(out)---main---tJavaRow&lt;BR /&gt;In my tJavaRow:&lt;BR /&gt;context.C1=out.BUSINESS_ID;&lt;BR /&gt;context.C2=out.SOURCE;&lt;BR /&gt;context.C3=out.COUNTRY;&lt;BR /&gt;This returns "null". When I put a tLogRow after my tMap I see the data. I tried with a tJava in vain.&lt;BR /&gt;Any Idea? &lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 05 Sep 2012 13:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212254#M9951</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-09-05T13:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning context variables in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212255#M9952</link>
      <description>Don't think this is the right way to do it as the conntexts will only have the value of the last mapping. Also tLogRow won't print the context values.</description>
      <pubDate>Wed, 05 Sep 2012 13:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212255#M9952</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-09-05T13:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning context variables in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212256#M9953</link>
      <description>Thanks Janhess 
&lt;BR /&gt;This is exactly I'm trying to do, having the value of the last mapping in my context variables. but it dosn't work.</description>
      <pubDate>Wed, 05 Sep 2012 13:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212256#M9953</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-09-05T13:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning context variables in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212257#M9954</link>
      <description>Are you sure? in your tJavaRow put a println for the contexts to see the value.</description>
      <pubDate>Wed, 05 Sep 2012 13:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212257#M9954</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-09-05T13:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning context variables in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212258#M9955</link>
      <description>janhess,
&lt;BR /&gt;When in my tjavarow I do : System.out.println(context.C1) I have "null" in the console. I can't explain this</description>
      <pubDate>Wed, 05 Sep 2012 14:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212258#M9955</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-09-05T14:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning context variables in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212259#M9956</link>
      <description>Ah I remember. You need to specify the input fields as
&lt;BR /&gt;System.out.println(input_row.field name)
&lt;BR /&gt;So in your case you would have
&lt;BR /&gt;context.C1=input_row.BUSINESS_ID;
&lt;BR /&gt;context.C2=input_row.SOURCE;
&lt;BR /&gt;context.C3=input_row.COUNTRY;</description>
      <pubDate>Wed, 05 Sep 2012 15:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-context-variables-in-tJavaRow/m-p/2212259#M9956</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-09-05T15:49:00Z</dc:date>
    </item>
  </channel>
</rss>

