<?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: how to load only the values needed using tMap? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205408#M5883</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; You can do it multiple ways in Talend.&amp;nbsp;You can use the current output of current tmap (ie the phone number with hyphen) as the input for another tmap where you can remove the hyphen with a java replace function.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I would suggest you to try it once as an assignment for yourself to strengthen the learning you have achieved till this point.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; But if you are stuck at some point, we are always there to help you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
    <pubDate>Sun, 28 Oct 2018 09:58:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-28T09:58:21Z</dc:date>
    <item>
      <title>how to load only the values needed using tMap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205405#M5880</link>
      <description>&lt;P&gt;I have an sql file which is the source file and a table which is the destination table. The data of the source file is something like:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;"Refer to mobile# 014-289" and what I only need to load from the source file to&amp;nbsp; the customer mobile number table is only the number, I should remove this *Refer to mobile#*. Is there anyway to do that using the tmap expression? What is the right syntax/code I should use and it should be done on all the rows, so meaning not only 1 row, there's a row that don't have that&amp;nbsp;*Refer to mobile#* and only mobile number, which is not a problem as there's no modification or anything that is needed.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;The tmap looks like the attachment.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thank you in advance for any suggestion or help.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Oct 2018 07:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205405#M5880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-27T07:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to load only the values needed using tMap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205406#M5881</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Please use the below code snippet in the tmap and you can parse the telephone number after #. The screen shot of the tmap is as below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv8U.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155071i9474B44BE30C888D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv8U.png" alt="0683p000009Lv8U.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The code to be used to parse the value is as below. Please change the name of column from test_ip to the column name of your choice.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Relational.ISNULL(row1.test_ip)? row1.test_ip: 
 (row1.test_ip.indexOf('#')&amp;lt;0? row1.test_ip : row1.test_ip.substring(row1.test_ip.indexOf("#") + 2) ) &lt;/PRE&gt; 
&lt;P&gt;If the answer has helped you to resolve the problem, could you please mark the topic as resolved? Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Sat, 27 Oct 2018 18:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205406#M5881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-27T18:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to load only the values needed using tMap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205407#M5882</link>
      <description>&lt;P&gt;Yeah, the solution is 100% perfect. Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But, I forgot to include that I need to remove the - as well, I'm thinking to use another expression which should be like this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Relational.ISNULL(row1.test_ip)? row1.test_ip: 
 (row1.test_ip.indexOf('#')&amp;lt;0? row1.test_ip : row1.test_ip.substring(row1.test_ip.indexOf("#") + 2) );&lt;BR /&gt;&lt;SPAN&gt;row2.test_ip.replaceAll("\\D", "")&amp;nbsp;&lt;/SPAN&gt; &lt;/PRE&gt; 
&lt;P&gt;Is my approach right?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Oct 2018 22:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205407#M5882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-27T22:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to load only the values needed using tMap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205408#M5883</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; You can do it multiple ways in Talend.&amp;nbsp;You can use the current output of current tmap (ie the phone number with hyphen) as the input for another tmap where you can remove the hyphen with a java replace function.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I would suggest you to try it once as an assignment for yourself to strengthen the learning you have achieved till this point.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; But if you are stuck at some point, we are always there to help you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 09:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205408#M5883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-28T09:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to load only the values needed using tMap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205409#M5884</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Yeels, I already did, instead of using the Change Function that you gave, I used the replaceAll instead, but still the solution you gave, I can use it on the other part of my tasks.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Sun, 28 Oct 2018 10:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205409#M5884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-28T10:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to load only the values needed using tMap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205410#M5885</link>
      <description>hi could you explain every point in this expression because i'm getting data aplhanumeric 12a3bcd4 so iwant split this and place in two fields like abcd 1234 so please explain thankyou
&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Oct 2018 05:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205410#M5885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-30T05:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to load only the values needed using tMap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205411#M5886</link>
      <description>&lt;P&gt;Hi Ram,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Below logic has helped me to parse the data.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 798px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0kg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154947iE7658080C7EA0991/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0kg.png" alt="0683p000009M0kg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0MM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156743i1037ACC9FDE85845/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0MM.png" alt="0683p000009M0MM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The logic to be used is:-&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Alpha -&amp;gt;                    row1.data.replaceAll("\\P{L}+", "")
Numeric -&amp;gt;                row1.data.replaceAll("[\\D.]", "")&lt;/PRE&gt; 
&lt;P&gt;If the answer has helped you, could you please mark the topic as resolved? Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 05:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-only-the-values-needed-using-tMap/m-p/2205411#M5886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-30T05:41:16Z</dc:date>
    </item>
  </channel>
</rss>

