<?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: IF/else statement usage in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/IF-else-statement-usage-in-tMap/m-p/2347921#M115116</link>
    <description>&lt;P&gt;When I insert this into the T-Map at the load in column;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If column contain Mb/s (check function INDEX)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;remove this text from column - ColumnName.replaceAll("&lt;SPAN&gt;&amp;nbsp;Mb/s&lt;/SPAN&gt;", "")&lt;/LI&gt; 
 &lt;LI&gt;then convert value to double - Double.parseDouble(ColumnName)&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;Exception in component tMap_4 (TMNGBH_MAXXX)&lt;BR /&gt;java.lang.NumberFormatException: empty String&lt;BR /&gt;at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)&lt;BR /&gt;at sun.misc.FloatingDecimal.parseDouble(Unknown Source)&lt;BR /&gt;at java.lang.Double.parseDouble(Unknown Source)&lt;BR /&gt;at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.tHashInput_1Process(TMNGBH_MAXXX.java:4490)&lt;BR /&gt;at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.tFileInputExcel_1Process(TMNGBH_MAXXX.java:3428)&lt;BR /&gt;at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.runJobInTOS(TMNGBH_MAXXX.java:6575)&lt;BR /&gt;at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.main(TMNGBH_MAXXX.java:6424)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I get this one. How can I remove the empty string. I have tried with treplace but it still shows this error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 05:13:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-12T05:13:59Z</dc:date>
    <item>
      <title>IF/else statement usage in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-else-statement-usage-in-tMap/m-p/2347919#M115114</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;How to compare and load data between two tables using talend, if I want to do the if/else to convert the kb/s to Mb/s how can I do that? After that, I have to take the higher value between the load_in &amp;amp; load_out column after the conversion. I'm very new to java &amp;amp; I need your help.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;.-------+-------------+-------------+--------+--------+---------+---------.&lt;BR /&gt;| tLogRow_1 |&lt;BR /&gt;|=------+-------------+-------------+--------+--------+---------+--------=|&lt;BR /&gt;|site_id|load_in |load_out |loadin_A|loadin_B|loadout_A|loadout_B|&lt;BR /&gt;|=------+-------------+-------------+--------+--------+---------+--------=|&lt;BR /&gt;|8495A |3.13 Mb/s |22.82 Mb/s |3.13 |Mb/s |22.82 |Mb/s |&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;|8208B&amp;nbsp; |65.61&amp;nbsp; kb/s&amp;nbsp; |54.81&amp;nbsp; kb/s&amp;nbsp; |65.61&amp;nbsp; &amp;nbsp;|kb/s&amp;nbsp; &amp;nbsp; |54.81&amp;nbsp; &amp;nbsp; |kb/s&amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 02:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-else-statement-usage-in-tMap/m-p/2347919#M115114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-12T02:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: IF/else statement usage in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-else-statement-usage-in-tMap/m-p/2347920#M115115</link>
      <description>&lt;P&gt;You could do this in few steps&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;If column contain Mb/s (check function INDEX) 
  &lt;OL&gt; 
   &lt;LI&gt;remove this text from column - ColumnName.replaceAll("&lt;SPAN&gt; Mb/s&lt;/SPAN&gt;", "")&lt;/LI&gt; 
   &lt;LI&gt;then convert value to double - Double.parseDouble(ColumnName)&lt;/LI&gt; 
  &lt;/OL&gt;&lt;/LI&gt; 
 &lt;LI&gt;If column contain Kb/s 
  &lt;OL&gt; 
   &lt;LI&gt;remove this string -&amp;nbsp;&lt;SPAN&gt;ColumnName.replaceAll("&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;kb/s&lt;/SPAN&gt;&lt;SPAN&gt;", "")&lt;/SPAN&gt;&lt;/LI&gt; 
   &lt;LI&gt;convert to double&amp;nbsp;&lt;SPAN&gt;- Double.parseDouble(ColumnName)&lt;/SPAN&gt;&lt;/LI&gt; 
   &lt;LI&gt;divide by 1024&lt;/LI&gt; 
  &lt;/OL&gt;&lt;/LI&gt; 
 &lt;LI&gt;compare values - use ? construction - ColumnName1 &amp;gt; ColumnName2? ColumnName1:ColumnName2&lt;/LI&gt; 
&lt;/OL&gt;</description>
      <pubDate>Thu, 12 Jul 2018 04:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-else-statement-usage-in-tMap/m-p/2347920#M115115</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-07-12T04:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: IF/else statement usage in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-else-statement-usage-in-tMap/m-p/2347921#M115116</link>
      <description>&lt;P&gt;When I insert this into the T-Map at the load in column;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If column contain Mb/s (check function INDEX)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;remove this text from column - ColumnName.replaceAll("&lt;SPAN&gt;&amp;nbsp;Mb/s&lt;/SPAN&gt;", "")&lt;/LI&gt; 
 &lt;LI&gt;then convert value to double - Double.parseDouble(ColumnName)&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;Exception in component tMap_4 (TMNGBH_MAXXX)&lt;BR /&gt;java.lang.NumberFormatException: empty String&lt;BR /&gt;at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)&lt;BR /&gt;at sun.misc.FloatingDecimal.parseDouble(Unknown Source)&lt;BR /&gt;at java.lang.Double.parseDouble(Unknown Source)&lt;BR /&gt;at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.tHashInput_1Process(TMNGBH_MAXXX.java:4490)&lt;BR /&gt;at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.tFileInputExcel_1Process(TMNGBH_MAXXX.java:3428)&lt;BR /&gt;at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.runJobInTOS(TMNGBH_MAXXX.java:6575)&lt;BR /&gt;at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.main(TMNGBH_MAXXX.java:6424)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I get this one. How can I remove the empty string. I have tried with treplace but it still shows this error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 05:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-else-statement-usage-in-tMap/m-p/2347921#M115116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-12T05:13:59Z</dc:date>
    </item>
  </channel>
</rss>

