<?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: Insert string inside another string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250135#M34465</link>
    <description>&lt;P&gt;I add trhee rows in tmap1 and compute the single part of the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;StringHandling.LEFT(dt.trainings_code_formatted,1) first part of the code &lt;STRONG&gt;COD1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;StringHandling.LEFT(StringHandling.RIGHT(dt.trainings_code_formatted,7),3) middle part of the code &lt;STRONG&gt;COD2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;StringHandling.RIGHT(dt.trainings_code_formatted,4) last part of the code &lt;STRONG&gt;COD3&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In tmap2 i concatenate the different fields&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dt1.COD1 + "-" + dt1.COD2 + "-" + dt1.COD3&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 15:28:03 GMT</pubDate>
    <dc:creator>EV89</dc:creator>
    <dc:date>2020-01-13T15:28:03Z</dc:date>
    <item>
      <title>Insert string inside another string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250133#M34463</link>
      <description>&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how is it the best practice to insert some "-" characters inside another string to format the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example, i have a code of xxxxxxxx digit and i want turn it in x-xxx-xxxx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for&amp;nbsp; your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 11:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250133#M34463</guid>
      <dc:creator>EV89</dc:creator>
      <dc:date>2020-01-13T11:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Insert string inside another string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250134#M34464</link>
      <description>&lt;P&gt;No idea if it is the best option but I would split the code and concatenate with "-", you can do it all in a tmap component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 13:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250134#M34464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-13T13:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Insert string inside another string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250135#M34465</link>
      <description>&lt;P&gt;I add trhee rows in tmap1 and compute the single part of the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;StringHandling.LEFT(dt.trainings_code_formatted,1) first part of the code &lt;STRONG&gt;COD1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;StringHandling.LEFT(StringHandling.RIGHT(dt.trainings_code_formatted,7),3) middle part of the code &lt;STRONG&gt;COD2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;StringHandling.RIGHT(dt.trainings_code_formatted,4) last part of the code &lt;STRONG&gt;COD3&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In tmap2 i concatenate the different fields&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dt1.COD1 + "-" + dt1.COD2 + "-" + dt1.COD3&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 15:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250135#M34465</guid>
      <dc:creator>EV89</dc:creator>
      <dc:date>2020-01-13T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Insert string inside another string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250136#M34466</link>
      <description>&lt;P&gt;Thank you for your answer. What tMap components do you use in order to accomplish this task? can you post a little script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 15:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250136#M34466</guid>
      <dc:creator>EV89</dc:creator>
      <dc:date>2020-01-13T15:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insert string inside another string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250137#M34467</link>
      <description>&lt;P&gt;I don't really know if these options are better than the one you already did. They are practically the same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option 1)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;StringHandling.LEFT(dt.trainings_code_formatted,1)&amp;nbsp;+ "-" +&amp;nbsp;StringHandling.LEFT(StringHandling.RIGHT(dt.trainings_code_formatted,7),3)&amp;nbsp;+ "-" +&amp;nbsp;StringHandling.RIGHT(dt.trainings_code_formatted,4)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option 2)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the tmap do variables where you calculate CODE1, CODE2 and CODE3 and in you output field the CODE1+ "-" +CODE2+ "-" +CODE3.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 11:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-string-inside-another-string/m-p/2250137#M34467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-14T11:00:45Z</dc:date>
    </item>
  </channel>
</rss>

