<?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: tSetGlobalVar var type in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278210#M53750</link>
    <description>Hello,&lt;BR /&gt;if that do no problem put " on the value "99999999999999" and use them as string.&lt;BR /&gt;After cast the global variable.&lt;BR /&gt;Else use a tJava with (Integer)globalMap.put("myKey","value")&lt;BR /&gt;else change type to float&lt;BR /&gt;&lt;BR /&gt;Best regards &lt;BR /&gt;Jeremie</description>
    <pubDate>Thu, 16 Oct 2008 13:53:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-10-16T13:53:30Z</dc:date>
    <item>
      <title>tSetGlobalVar var type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278209#M53749</link>
      <description>Hi,&lt;BR /&gt;Im trying to set a GlobalVar to a value like "99999999999999", but i got the following error: Exception in thread "main" java.lang.Error: Unresolved compilation problem: The literal 99999999999999 of type int is out of range.&lt;BR /&gt;How can I set this variable type to "Long"?</description>
      <pubDate>Sat, 16 Nov 2024 14:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278209#M53749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: tSetGlobalVar var type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278210#M53750</link>
      <description>Hello,&lt;BR /&gt;if that do no problem put " on the value "99999999999999" and use them as string.&lt;BR /&gt;After cast the global variable.&lt;BR /&gt;Else use a tJava with (Integer)globalMap.put("myKey","value")&lt;BR /&gt;else change type to float&lt;BR /&gt;&lt;BR /&gt;Best regards &lt;BR /&gt;Jeremie</description>
      <pubDate>Thu, 16 Oct 2008 13:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278210#M53750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-16T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: tSetGlobalVar var type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278211#M53751</link>
      <description>Thanks jeremie, but now I got the following error: Exception in component tMap_4. java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long.&lt;BR /&gt;In truth I want to use the time of today in this variable, to compare with some files time... any other ideas?</description>
      <pubDate>Thu, 16 Oct 2008 14:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278211#M53751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-16T14:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: tSetGlobalVar var type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278212#M53752</link>
      <description>Ok,
&lt;BR /&gt;i think you compare two objects with diferent type or the type output is diferent of the type of the expression.
&lt;BR /&gt;to cast use expression like Long.valueOf(row.RefFieldEnter).
&lt;BR /&gt;Jeremie</description>
      <pubDate>Thu, 16 Oct 2008 14:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278212#M53752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-16T14:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: tSetGlobalVar var type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278213#M53753</link>
      <description>Thanks,
&lt;BR /&gt;I already managed to do it by using a TalendDate.GetCurrentDate.GetTime. It seens like this expression returns a long, the variable is automatically set to this type.</description>
      <pubDate>Thu, 16 Oct 2008 14:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278213#M53753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-16T14:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: tSetGlobalVar var type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278214#M53754</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Hello,&lt;BR /&gt;if that do no problem put " on the value "99999999999999" and use them as string.&lt;BR /&gt;After cast the global variable.&lt;BR /&gt;Else use a tJava with (Integer)globalMap.put("myKey","value")&lt;BR /&gt;else change type to float&lt;BR /&gt;Best regards &lt;BR /&gt;Jeremie&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Seriously?!&lt;BR /&gt;Can't the tSetGlobalVar set long variables?&lt;BR /&gt;I have a similar problem where I want to put a long value, which I fetch through a query, into a global var with tSetGlobalVar.&lt;BR /&gt;Do I then need to write this in as code in tJava-component?</description>
      <pubDate>Fri, 02 Mar 2012 17:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSetGlobalVar-var-type/m-p/2278214#M53754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-02T17:48:55Z</dc:date>
    </item>
  </channel>
</rss>

