<?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: [resolved] t_Java and setting a global variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-t-Java-and-setting-a-global-variable/m-p/2298711#M71142</link>
    <description>Yes, just figured that out actually. Thanks for the response though!</description>
    <pubDate>Thu, 04 Aug 2011 17:06:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-04T17:06:51Z</dc:date>
    <item>
      <title>[resolved] t_Java and setting a global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-t-Java-and-setting-a-global-variable/m-p/2298709#M71140</link>
      <description>I was wondering if anyone could help me figure out why this code does not work (it executes just does not do what I want it to).&lt;BR /&gt;I have a tMap that sends one row to a tJava transformation. The t_Java is designed to set a global variable with the following code:&lt;BR /&gt;System.out.println("Value Of Input:" + setVariable.varTOP);&lt;BR /&gt;globalMap.put("context.rowTOP", setVariable.varTOP);&lt;BR /&gt;System.out.println("Value Of Input:" + setVariable.varTOP);&lt;BR /&gt;System.out.println("Value of Global Var: "+(Integer) globalMap.get("context.rowTOP"));&lt;BR /&gt;I have added the println for validation. No matter what I send as input from the tMap to the tJava equation it results in 0 being displayed by all of the println's above. I have tried to manually set the value in my tMap as 1 and it still displays 0 in the tJava. I am on talend 4.2.2.&lt;BR /&gt;Anyone have any ideas?&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 16 Nov 2024 12:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-t-Java-and-setting-a-global-variable/m-p/2298709#M71140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] t_Java and setting a global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-t-Java-and-setting-a-global-variable/m-p/2298710#M71141</link>
      <description>Hi ricepato&lt;BR /&gt;Connect a tjavarow to your tmap instead of a tjava.&lt;BR /&gt;tmap --main--&amp;gt; tjavarow&lt;BR /&gt;and using the following code in the tjavarow:&lt;BR /&gt;&lt;PRE&gt;System.out.println("Value Of Input: "+input_row.varTOP);&lt;BR /&gt;globalMap.put("varTOP", input_row.varTOP);&lt;BR /&gt;System.out.println("Value Of GlobalVar: "+globalMap.get("varTOP"));&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Aug 2011 16:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-t-Java-and-setting-a-global-variable/m-p/2298710#M71141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-04T16:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] t_Java and setting a global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-t-Java-and-setting-a-global-variable/m-p/2298711#M71142</link>
      <description>Yes, just figured that out actually. Thanks for the response though!</description>
      <pubDate>Thu, 04 Aug 2011 17:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-t-Java-and-setting-a-global-variable/m-p/2298711#M71142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-04T17:06:51Z</dc:date>
    </item>
  </channel>
</rss>

