<?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 insert ' ' to a string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Tmap-insert-to-a-string/m-p/2335115#M103709</link>
    <description>&lt;P&gt;Nice thanks but if I compared it to the csv option in the FileOutDelimited component now inside my description text&amp;nbsp;the double quote won't be shown, e.g. you open the csv in excel again.&lt;/P&gt;
&lt;P&gt;Inside the string must be wheel size 16"" but if I open the csv in notepad there's only&amp;nbsp;&lt;SPAN&gt;size 16" thats why excel will not recognize the double quote in the description text.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 09:47:46 GMT</pubDate>
    <dc:creator>pawe84</dc:creator>
    <dc:date>2018-04-10T09:47:46Z</dc:date>
    <item>
      <title>Tmap insert ' ' to a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-insert-to-a-string/m-p/2335112#M103706</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt; 
&lt;P&gt;First of all I'm a total newbie to Talend and java so please excuse me if my issue seems very primitive &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; Anyway my issue is that I'm stuck with figuring out how to insert&lt;STRONG&gt; ''&lt;/STRONG&gt; around a string which is red and loaded to tmap from a CSV file. Where it gets complicated is that if the field is null (meaning the column is empty) then the empty column output value should be replaced with &lt;EM&gt;&lt;STRONG&gt;null&lt;/STRONG&gt;&amp;nbsp; (as in a string that says null) &lt;/EM&gt;with out the &lt;STRONG&gt;' '&lt;/STRONG&gt;&amp;nbsp; around it but if it contains a string, output should be '&lt;STRONG&gt;&lt;EM&gt;string'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;basically IF column contains a &lt;EM&gt;string&lt;/EM&gt; modify output to &lt;EM&gt;'string'&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;else modify output to &lt;EM&gt;null&lt;/EM&gt;(string)&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;so far i have figured out how to check for empty field and insert null by doing&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;row2.MailingAddressLine1.equals("")?"null":row2.MailingAddressLine1 &amp;lt; this does what i want to do regarding inserting null in to the field&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And I have tried to do the double quote insertion by doing&lt;/P&gt; 
&lt;P&gt;StringHandling.TRIM(row2.MailingAddressLine1).length() != 0 ? " 'row2.MailingAddressLine1' ":row2.MailingAddressLine1 &lt;EM&gt;&amp;lt; this just replaced 'row2.MailingAddressLine1' for anything that contained a valid string in that column.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Have no clue as to how i should combine the two functions in to one maybe and if else statement?&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Thank you for taking time to read! really appreciate your comments &lt;/EM&gt;&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>Sat, 16 Nov 2024 09:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-insert-to-a-string/m-p/2335112#M103706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap insert ' ' to a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-insert-to-a-string/m-p/2335113#M103707</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;row2.MailingAddressLine1.equals("")?"null":"'"+row2.MailingAddressLine1+"'"&lt;/PRE&gt;
&lt;P&gt;or this,&amp;nbsp;if you want double quotes arround the string:&lt;/P&gt;
&lt;PRE&gt;row2.MailingAddressLine1.equals("")?"null":"\""+row2.MailingAddressLine1+"\""&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Nov 2017 08:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-insert-to-a-string/m-p/2335113#M103707</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-11-17T08:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap insert ' ' to a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-insert-to-a-string/m-p/2335114#M103708</link>
      <description>&lt;P&gt;Thank you so much, That just worked like a charm!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 08:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-insert-to-a-string/m-p/2335114#M103708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-17T08:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap insert ' ' to a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-insert-to-a-string/m-p/2335115#M103709</link>
      <description>&lt;P&gt;Nice thanks but if I compared it to the csv option in the FileOutDelimited component now inside my description text&amp;nbsp;the double quote won't be shown, e.g. you open the csv in excel again.&lt;/P&gt;
&lt;P&gt;Inside the string must be wheel size 16"" but if I open the csv in notepad there's only&amp;nbsp;&lt;SPAN&gt;size 16" thats why excel will not recognize the double quote in the description text.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 09:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-insert-to-a-string/m-p/2335115#M103709</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2018-04-10T09:47:46Z</dc:date>
    </item>
  </channel>
</rss>

