<?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: Problems converting Integer to short -- Java in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Problems-converting-Integer-to-short-Java/m-p/2227592#M19159</link>
    <description>try  &lt;BR /&gt;short(row1.field_name)&lt;BR /&gt;or try new BigDecimal(row1.field_name).shortValue()</description>
    <pubDate>Thu, 20 Jan 2011 08:21:50 GMT</pubDate>
    <dc:creator>veryimportantdude</dc:creator>
    <dc:date>2011-01-20T08:21:50Z</dc:date>
    <item>
      <title>Problems converting Integer to short -- Java</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problems-converting-Integer-to-short-Java/m-p/2227589#M19156</link>
      <description>Hello, 
&lt;BR /&gt;I am trying to convert an integer to a "short" value, using following expression in Tmap: 
&lt;BR /&gt;Relational.ISNULL(row22.Hijos)?null:row22.Hijos.equals("null")?null 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;Short)row22.Hijos 
&lt;BR /&gt;However, I receive message "Cannot convert from Integer to short". 
&lt;BR /&gt;I believe the syntax to be correct, given that the error message reflects what I am trying to do. I can confirm that source field is of type Integer, and target is of type short. 
&lt;BR /&gt;Any ideas as to why this might be happening?</description>
      <pubDate>Sat, 16 Nov 2024 13:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problems-converting-Integer-to-short-Java/m-p/2227589#M19156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems converting Integer to short -- Java</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problems-converting-Integer-to-short-Java/m-p/2227590#M19157</link>
      <description>hi&lt;BR /&gt;try &lt;A href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Integer.html#shortValue()" target="_blank" rel="nofollow noopener noreferrer"&gt;shortValue()&lt;/A&gt; method !&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Mon, 17 Jan 2011 22:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problems-converting-Integer-to-short-Java/m-p/2227590#M19157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-17T22:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problems converting Integer to short -- Java</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problems-converting-Integer-to-short-Java/m-p/2227591#M19158</link>
      <description>Hi Laurent,&lt;BR /&gt;That doesn't seem to work, &lt;BR /&gt;I tried mapping of "shortValue(row72.CountGrupo)", but received following message:&lt;BR /&gt;The method shortValue(Integer) is undefined for the type PhoneData&lt;BR /&gt;Any suggestions?</description>
      <pubDate>Wed, 19 Jan 2011 19:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problems-converting-Integer-to-short-Java/m-p/2227591#M19158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-19T19:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems converting Integer to short -- Java</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problems-converting-Integer-to-short-Java/m-p/2227592#M19159</link>
      <description>try  &lt;BR /&gt;short(row1.field_name)&lt;BR /&gt;or try new BigDecimal(row1.field_name).shortValue()</description>
      <pubDate>Thu, 20 Jan 2011 08:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problems-converting-Integer-to-short-Java/m-p/2227592#M19159</guid>
      <dc:creator>veryimportantdude</dc:creator>
      <dc:date>2011-01-20T08:21:50Z</dc:date>
    </item>
  </channel>
</rss>

