<?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: String Method in tMap Output that will print the whole value based on a symbol Else leave the value Blank in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233415#M23087</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLGFAA4"&gt;@sm&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;can you show it with sample data&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for date , you can verify with isdate function with specified date format&lt;/P&gt; 
&lt;P&gt;for currency ,you could download list of all available currencies( ISO 4217) and do a lookup.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.iso.org/iso-4217-currency-codes.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 19:46:50 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-03-11T19:46:50Z</dc:date>
    <item>
      <title>String Method in tMap Output that will print the whole value based on a symbol Else leave the value Blank</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233412#M23084</link>
      <description>&lt;P&gt;I am dealing with an Input File that contains a Column with both email addresses and phone numbers. Now I have an email address column in my tMap Output Column. How would I map only the email addresses contained in the input column over and not the phone numbers. I was thinking using&amp;nbsp;@ symbol as the identifier in the values to print the entire value if the value contains an&amp;nbsp;@ sign Else leave the column.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm not sure if their is a Contains Function or I could use the wildcards on both sides of the&amp;nbsp;@ sign. So the expression (String Method) would be input.phone&amp;amp;email.equals("*@*")?&amp;nbsp;input.phone&amp;amp;email: ""&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;May need to handle the blanks in the column as well&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Help would be greatly appreciated and Kudos coming your way!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 19:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233412#M23084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T19:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: String Method in tMap Output that will print the whole value based on a symbol Else leave the value Blank</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233413#M23085</link>
      <description>&lt;P&gt;You can use an inline if condition to check for the presence of a '@'.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To do this with the following code....&lt;/P&gt; 
&lt;PRE&gt;input.phone_email!=null &amp;amp;&amp;amp; input.phone_email.indexOf('@')&amp;gt;-1 ? input.phone_email : ""&lt;/PRE&gt; 
&lt;P&gt;What the above does is ask first whether the column is NOT null. If it is NOT null it then tests to see if it contains a @ symbol. If it does it returns input.phone_email. Otherwise it returns an empty String. Inline ifs are really useful. The logic before the ? is the test which returns a true or false. The first code after the ? and before the : is the action taken for true, the code after the : is the action taken for false.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 19:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233413#M23085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T19:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: String Method in tMap Output that will print the whole value based on a symbol Else leave the value Blank</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233414#M23086</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your solution.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If I wanted to have the same logic but with dates or currency instead of email addresses how can that be done within a string method? I have a messy file where I have names and addresses in a Date and Currency field so I need to change all those values to blank and only format the dates and currency, if it actually has a certain date format for instance MM/dd/YYYY.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;-Andrew&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 18:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233414#M23086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T18:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: String Method in tMap Output that will print the whole value based on a symbol Else leave the value Blank</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233415#M23087</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLGFAA4"&gt;@sm&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;can you show it with sample data&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for date , you can verify with isdate function with specified date format&lt;/P&gt; 
&lt;P&gt;for currency ,you could download list of all available currencies( ISO 4217) and do a lookup.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.iso.org/iso-4217-currency-codes.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 19:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233415#M23087</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-11T19:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: String Method in tMap Output that will print the whole value based on a symbol Else leave the value Blank</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233416#M23088</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLGFAA4"&gt;@sm&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; There are lot of pre-built patterns in Profiling perspective of Studio (You need to change Perspective from Integration to Profiling at top right part).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 338px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3N1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137701i09DE83D25FA85611/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3N1.png" alt="0683p000009M3N1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can go through these patterns and either copy these patterns or create analysis report and convert the analysis to integration jobs.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 01:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Method-in-tMap-Output-that-will-print-the-whole-value/m-p/2233416#M23088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-12T01:05:54Z</dc:date>
    </item>
  </channel>
</rss>

