<?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 concatenate string with filter in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218037#M13399</link>
    <description>Awesome, pkakade! Glad you got it to work... 
&lt;BR /&gt;kzone - I totally understand what you're saying about using Talend out-of-the-box components and methods than using Java... I hear you... Yes, when you need to expose stats, Talend components are the way to go. My suggestion of that tiny java snippet was intended for the tMap component which doesn't interfere much with things before and after it... 
&lt;BR /&gt;But I agree - data integration is both an art and a science... 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Wed, 26 Mar 2014 21:42:41 GMT</pubDate>
    <dc:creator>willm1</dc:creator>
    <dc:date>2014-03-26T21:42:41Z</dc:date>
    <item>
      <title>How to concatenate string with filter in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218031#M13393</link>
      <description>Hi,&lt;BR /&gt;I have a date column  like&lt;BR /&gt;02/23/2013&lt;BR /&gt;04/23/2013&lt;BR /&gt;02-23-2014&lt;BR /&gt;dates are in different format so to take the column in one format (MM-dd-YYYY) i used tReplace and replaced "/" with "-"&lt;BR /&gt;but know the output dates which are replaced are like for 02/23/2013 output is 2-23-2013 so &lt;BR /&gt;How do I concatenate a "0" to all the dates which are converted .</description>
      <pubDate>Tue, 25 Mar 2014 11:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218031#M13393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T11:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate string with filter in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218032#M13394</link>
      <description>If your input field is of type string, you shouldn't have to have the issue you're having... The replace shouldn't remove leading zeros... See attached... 
&lt;BR /&gt;(Alternatively, you can use a java date parse function to convert what you currently have...) 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDOb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140669i4299049A33986F47/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDOb.png" alt="0683p000009MDOb.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDBY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141137i117DE56F728E668C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDBY.png" alt="0683p000009MDBY.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 25 Mar 2014 13:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218032#M13394</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-03-25T13:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate string with filter in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218033#M13395</link>
      <description>hi, 
&lt;BR /&gt;as you need to know which pattern is used before replace caracter, you can try the tFilterRow in advenced mode and check String contains "-" ; if OK do something 
&lt;BR /&gt;Else , use reject flow , check if contains "/" ....etc 
&lt;BR /&gt;here an example to convert String to Date without using too many java code by Talend components. (it will be more readable 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDHh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155303i8C489199AB2E6832/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDHh.png" alt="0683p000009MDHh.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 25 Mar 2014 14:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218033#M13395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T14:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate string with filter in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218034#M13396</link>
      <description>@kzone - I like your solution as well, but want to point out that the replace function will only replace if it finds a delimiter - so the code is lighter - no need for filtering for it... Sometimes leveraging java functions is more efficient and equally elegant...
&lt;BR /&gt;If my example seemed like overkill (and overwhelming), here's the output field that should work for all fields: 
&lt;BR /&gt;(strDate1.toString()).replace("/", "-")
&lt;BR /&gt;It first makes sure it's a String, then replace any occurences of / with -</description>
      <pubDate>Tue, 25 Mar 2014 15:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218034#M13396</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-03-25T15:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate string with filter in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218035#M13397</link>
      <description>It's not the fact that java code is more elegant or not 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Using 'Talend graphic langage', I'm able to also use any statistics information about meterflow or catch reject about filter, etc. 
&lt;BR /&gt;If I have some evolutions or modifications, I can easily do it by adding some extra "Talend code". 
&lt;BR /&gt;By using java code, I have to add some new extra java code to modify behavior. 
&lt;BR /&gt;In my example, I've got some java code with contain method, but inherent to filter component. 
&lt;BR /&gt;It's one of reasons that I'm using java code as few as possible even if it could be elegant 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;But it's not a priesthood 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Wed, 26 Mar 2014 09:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218035#M13397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-26T09:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate string with filter in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218036#M13398</link>
      <description>Thanks Willm and kezone !!!
&lt;BR /&gt;@willm my input field is string and I use tReplace component to replace the "/" with "-" but actually i missed to mention that my source column did not had leading zeros for dates with "/" format.
&lt;BR /&gt;but I used a different solution : After replacing the "/" with "-" . In tMap I used an expression as below which worked !!! 
&lt;BR /&gt;(row3.Date.length())==9)?"0"+row3.Date : row3.Date</description>
      <pubDate>Wed, 26 Mar 2014 11:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218036#M13398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-26T11:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate string with filter in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218037#M13399</link>
      <description>Awesome, pkakade! Glad you got it to work... 
&lt;BR /&gt;kzone - I totally understand what you're saying about using Talend out-of-the-box components and methods than using Java... I hear you... Yes, when you need to expose stats, Talend components are the way to go. My suggestion of that tiny java snippet was intended for the tMap component which doesn't interfere much with things before and after it... 
&lt;BR /&gt;But I agree - data integration is both an art and a science... 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 26 Mar 2014 21:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-concatenate-string-with-filter-in-tmap/m-p/2218037#M13399</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-03-26T21:42:41Z</dc:date>
    </item>
  </channel>
</rss>

