<?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 how to convert null to empty in globalmap.get in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-convert-null-to-empty-in-globalmap-get/m-p/2358499#M123513</link>
    <description>&lt;P&gt;This should be an easy one for people here, I am just not experienced enough to figure this out.&lt;/P&gt;&lt;P&gt;When using tFTPPut to output a file I am calling the new name (String)globalMap.get("file_prefix") + (String)globalMap.get("file_name") + ".pgp" .&lt;/P&gt;&lt;P&gt;In some cases though file_prefix is null but in those cases the file name is actually being written as nullFileName.pgp . What function can I put around the first string portion to not make it put anything there as I thought it would. To be clear, it is putting the string "null" and this is a context variable that is left empty.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 18:30:45 GMT</pubDate>
    <dc:creator>SIrving1689772775</dc:creator>
    <dc:date>2023-09-05T18:30:45Z</dc:date>
    <item>
      <title>how to convert null to empty in globalmap.get</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-convert-null-to-empty-in-globalmap-get/m-p/2358499#M123513</link>
      <description>&lt;P&gt;This should be an easy one for people here, I am just not experienced enough to figure this out.&lt;/P&gt;&lt;P&gt;When using tFTPPut to output a file I am calling the new name (String)globalMap.get("file_prefix") + (String)globalMap.get("file_name") + ".pgp" .&lt;/P&gt;&lt;P&gt;In some cases though file_prefix is null but in those cases the file name is actually being written as nullFileName.pgp . What function can I put around the first string portion to not make it put anything there as I thought it would. To be clear, it is putting the string "null" and this is a context variable that is left empty.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 18:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-convert-null-to-empty-in-globalmap-get/m-p/2358499#M123513</guid>
      <dc:creator>SIrving1689772775</dc:creator>
      <dc:date>2023-09-05T18:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert null to empty in globalmap.get</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-convert-null-to-empty-in-globalmap-get/m-p/2358500#M123514</link>
      <description>&lt;P&gt;Hello @Stuart Irving​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; (((String)globalMap.get("file_prefix")) != null? ((String)globalMap.get("file_prefix")) : "REPLACEMENT") + (String)globalMap.get("file_name") + ".pgp"&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 20:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-convert-null-to-empty-in-globalmap-get/m-p/2358500#M123514</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-09-05T20:27:04Z</dc:date>
    </item>
  </channel>
</rss>

