<?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 Check the first two string characters and despise case starts with.. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Check-the-first-two-string-characters-and-despise-case-starts/m-p/2372792#M135585</link>
    <description>&lt;P&gt;Hi !!!&lt;/P&gt;&lt;P&gt;I have some string values, and i can't insert into DB the values starts with 'YY...' and 'YT...'.&lt;/P&gt;&lt;P&gt;For example , i need to insert only 'ABABC01':&lt;/P&gt;&lt;P&gt;row1.Field_A&lt;/P&gt;&lt;P&gt; YYABC01&lt;/P&gt;&lt;P&gt; YYABC02&lt;/P&gt;&lt;P&gt; ABABC01&lt;/P&gt;&lt;P&gt; YTABC01&lt;/P&gt;&lt;P&gt; YTABC02&lt;/P&gt;&lt;P&gt;I have to check the first two characters and if equals YY or YT don't insert this lines&lt;/P&gt;&lt;P&gt; How can i do this in a tMap ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I 'm using this on filter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StringHandling.LEFT(row1.Field_A,2)=!'YY' || StringHandling.LEFT(row1.Field_A,2)=!'YT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; but i get an error:&lt;/P&gt;&lt;P&gt;  INVALID CHARACTER CONSTANT&lt;/P&gt;&lt;P&gt;tks &lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:35:32 GMT</pubDate>
    <dc:creator>Igor2</dc:creator>
    <dc:date>2024-11-15T23:35:32Z</dc:date>
    <item>
      <title>Check the first two string characters and despise case starts with..</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-the-first-two-string-characters-and-despise-case-starts/m-p/2372792#M135585</link>
      <description>&lt;P&gt;Hi !!!&lt;/P&gt;&lt;P&gt;I have some string values, and i can't insert into DB the values starts with 'YY...' and 'YT...'.&lt;/P&gt;&lt;P&gt;For example , i need to insert only 'ABABC01':&lt;/P&gt;&lt;P&gt;row1.Field_A&lt;/P&gt;&lt;P&gt; YYABC01&lt;/P&gt;&lt;P&gt; YYABC02&lt;/P&gt;&lt;P&gt; ABABC01&lt;/P&gt;&lt;P&gt; YTABC01&lt;/P&gt;&lt;P&gt; YTABC02&lt;/P&gt;&lt;P&gt;I have to check the first two characters and if equals YY or YT don't insert this lines&lt;/P&gt;&lt;P&gt; How can i do this in a tMap ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I 'm using this on filter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StringHandling.LEFT(row1.Field_A,2)=!'YY' || StringHandling.LEFT(row1.Field_A,2)=!'YT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; but i get an error:&lt;/P&gt;&lt;P&gt;  INVALID CHARACTER CONSTANT&lt;/P&gt;&lt;P&gt;tks &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-the-first-two-string-characters-and-despise-case-starts/m-p/2372792#M135585</guid>
      <dc:creator>Igor2</dc:creator>
      <dc:date>2024-11-15T23:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Check the first two string characters and despise case starts with..</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-the-first-two-string-characters-and-despise-case-starts/m-p/2372793#M135586</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Please see below. &lt;/P&gt;&lt;P&gt;row1.newColumn.substring(0,2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filter expression:&lt;/P&gt;&lt;P&gt;!(Var.var1.equals("YY")||Var.var1.equals("YT"))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KCdRtAAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154048i9CE9596CCC214FD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KCdRtAAL.png" alt="0695b00000KCdRtAAL.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 02:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-the-first-two-string-characters-and-despise-case-starts/m-p/2372793#M135586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-27T02:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Check the first two string characters and despise case starts with..</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-the-first-two-string-characters-and-despise-case-starts/m-p/2372794#M135587</link>
      <description>&lt;P&gt;shong always saves me thanks &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;I had to do this modification:&lt;/P&gt;&lt;P&gt;&lt;I&gt;row1.newColumn.substring(0, Math.min(2,row1.newColumn.length())&lt;/I&gt;)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 13:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-the-first-two-string-characters-and-despise-case-starts/m-p/2372794#M135587</guid>
      <dc:creator>Igor2</dc:creator>
      <dc:date>2021-10-27T13:15:30Z</dc:date>
    </item>
  </channel>
</rss>

