<?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: Tmap and string contains in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214993#M11596</link>
    <description>add this on the output filter of a tmap row.IDs.substring(4).equals("A")</description>
    <pubDate>Fri, 29 Mar 2019 13:06:48 GMT</pubDate>
    <dc:creator>fdenis</dc:creator>
    <dc:date>2019-03-29T13:06:48Z</dc:date>
    <item>
      <title>Tmap and string contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214990#M11593</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have a column which contains text string (IDs). There is some logic in our text strings which I would like to use for mapping purposes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The IDs can be like H123A, H123B or H123C. I am looking to map the data to different columns based on the last character of the text string (A,B or C).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For Example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If ID is H123A it should go to Column1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If ID is H123B it should go to Column2.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;IF ID is H123C then it should go to Column3.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can anyone please help me out on this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;BR /&gt;&lt;SPAN&gt;Arjun&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 12:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214990#M11593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T12:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap and string contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214991#M11594</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPPoAAO"&gt;@arjunvigneshwar&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;am assuming you have 3 columns in the output side in tMap&lt;/P&gt;
&lt;P&gt;row1.Source.toLowerCase().contains("ID") ? "H123A" :&amp;nbsp;row1.Source&amp;nbsp; at column1 on tMap&lt;/P&gt;
&lt;P&gt;row1.Source.toLowerCase().contains("ID") ? "H123B" :&amp;nbsp;row1.Source&amp;nbsp; at column2 on tMap&lt;/P&gt;
&lt;P&gt;row1.Source.toLowerCase().contains("ID") ? "H123C" :&amp;nbsp;row1.Source&amp;nbsp; at column3 on tMap&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please write in all three columns, i just written lower case to avoid some case, some id may not be in Caps&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 13:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214991#M11594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T13:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap and string contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214992#M11595</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPFSAA4"&gt;@ksingh&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hi Manish,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Will the below commands work when ever the fields contains the string "A" "B" or "C".&lt;/P&gt; 
&lt;P&gt;If the string contains the alphabet A it should go t Column 1, if B then to Column2 or else to column 3.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance.&lt;/P&gt; 
&lt;P&gt;Kind Regards,&lt;/P&gt; 
&lt;P&gt;Arjun Rathinam&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 13:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214992#M11595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T13:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap and string contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214993#M11596</link>
      <description>add this on the output filter of a tmap row.IDs.substring(4).equals("A")</description>
      <pubDate>Fri, 29 Mar 2019 13:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214993#M11596</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-03-29T13:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap and string contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214994#M11597</link>
      <description>&lt;P&gt;Hi Francois,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not necessary that the A or B or C should be the 5 character of the string. It can be anywhere. Basically if the string contains the Aplhabet A it should be in column1 or if it contains B anywhere then it should be in Column2 or else it should be in Column3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I tried your solution I am getting the attached error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Arjun&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvFr"&gt;Error.PNG&lt;/A&gt;</description>
      <pubDate>Fri, 29 Mar 2019 13:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214994#M11597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T13:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap and string contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214995#M11598</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPPoAAO"&gt;@arjunvigneshwar&lt;/A&gt;&amp;nbsp; did you tried the function i mentioned earlier?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 13:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214995#M11598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T13:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap and string contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214996#M11599</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPFSAA4"&gt;@ksingh&lt;/A&gt;&amp;nbsp; Yes, I did. I am getting the attached output.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In am currently getting the output which highlighted in yellow. But I am expecting the output to be like the one highlighted in green.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;PFA,..&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Kind Regards,&lt;/P&gt; 
&lt;P&gt;Arjun&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lv8S"&gt;Output.PNG&lt;/A&gt;</description>
      <pubDate>Fri, 29 Mar 2019 13:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214996#M11599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T13:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap and string contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214997#M11600</link>
      <description>&lt;P&gt;try this it will work as per your requirement&lt;/P&gt;&lt;P&gt;row1.Source.toLowerCase().contains("a") ?&amp;nbsp; row1.Source : ""&amp;nbsp; at column1 on tMap&lt;/P&gt;&lt;P&gt;row1.Source.toLowerCase().contains("b") ?&amp;nbsp; row1.Source : ""&amp;nbsp; at column2 on tMap&lt;/P&gt;&lt;P&gt;row1.Source.toLowerCase().contains("c") ? row1.Source : ""at column3 on tMap&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By assuming we only get either a or b or c not a and b or b and c both at a time in a string.&lt;/P&gt;&lt;P&gt;at the end of function i written string with no spaces.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 13:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214997#M11600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T13:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap and string contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214998#M11601</link>
      <description>&lt;P&gt;Yes, this works perfect!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Arjun&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 13:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214998#M11601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T13:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap and string contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214999#M11602</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPPoAAO"&gt;@arjunvigneshwar&lt;/A&gt;&amp;nbsp;okay thanks, thanks for sharing the example screenshot, so i figured it out easily&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 13:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-and-string-contains/m-p/2214999#M11602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T13:58:15Z</dc:date>
    </item>
  </channel>
</rss>

