<?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: Add integer to a body message in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303592#M75453</link>
    <description>String.valueOf((Integer)globalMap.get("tFileList_1_NB_FILE"))</description>
    <pubDate>Thu, 25 Apr 2013 09:22:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-04-25T09:22:42Z</dc:date>
    <item>
      <title>Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303588#M75449</link>
      <description>Hi,
&lt;BR /&gt;i'm using tSendMail and i would like to send the variable :
&lt;BR /&gt;((Integer)globalMap.get("tFileList_1_NB_FILE")) in the message body.
&lt;BR /&gt;i got an error when i try to add it.
&lt;BR /&gt;Type mismatch: cannot convert from Object&amp;amp;Serializable&amp;amp;Comparable&amp;lt;?&amp;gt; to String
&lt;BR /&gt;how can i convert it to string?
&lt;BR /&gt;Thanks
&lt;BR /&gt;Shahar</description>
      <pubDate>Thu, 25 Apr 2013 07:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303588#M75449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T07:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303589#M75450</link>
      <description>Hi, 
&lt;BR /&gt;The ((Integer)globalMap.get("tFileList_1_NB_FILE")) stands for the number of your files and it must return to "Integer". 
&lt;BR /&gt;If you want to send your files in Local Disk, I think you should choose the ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")).
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 25 Apr 2013 08:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303589#M75450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T08:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303590#M75451</link>
      <description>Hi,
&lt;BR /&gt;i'm trying to get the number of files loaded. 
&lt;BR /&gt;is there another way to do it? 
&lt;BR /&gt;thanks
&lt;BR /&gt;Shahar</description>
      <pubDate>Thu, 25 Apr 2013 08:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303590#M75451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T08:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303591#M75452</link>
      <description>Hi, 
&lt;BR /&gt;You can use ((Integer)globalMap.get("tFileList_1_NB_FILE")) in component 
&lt;A href="https://help.talend.com/search/all?query=tFixedFlowInput&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tFixedFlowInput&lt;/A&gt;. 
&lt;BR /&gt;See my screenshots for details 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEQE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144004i123542B84EEB1D86/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEQE.png" alt="0683p000009MEQE.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MECh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134060iBCDA5A1ED149ADDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MECh.png" alt="0683p000009MECh.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 25 Apr 2013 08:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303591#M75452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T08:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303592#M75453</link>
      <description>String.valueOf((Integer)globalMap.get("tFileList_1_NB_FILE"))</description>
      <pubDate>Thu, 25 Apr 2013 09:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303592#M75453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T09:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303593#M75454</link>
      <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;String.valueOf((Integer)globalMap.get("tFileList_1_NB_FILE"))&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;I'm afraid to say it is not a good option. ((Integer)globalMap.get("tFileList_1_NB_FILE")) is used to get the number of files loaded, and the result is Integer, (such as, 1,2). If you convert it to "String", I wonder what is the sense of this Global variables?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 25 Apr 2013 09:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303593#M75454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T09:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303594#M75455</link>
      <description>Did you read the shahark's post? He/she wants to put the number of files in an email message body as info, so the value has to be converted to a string as the message body is a string.</description>
      <pubDate>Thu, 25 Apr 2013 09:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303594#M75455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T09:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303595#M75456</link>
      <description>Hi kelebek,
&lt;BR /&gt;You are right, I made a misunderstanding about that. If the e-mail message body include the number of files loaded, String.valueOf((Integer)globalMap.get("tFileList_1_NB_FILE")) is necessary. My suggestion in #4 only let user see the number of files loaded in studio. Thanks for your correction and precise help.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 25 Apr 2013 10:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303595#M75456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T10:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303596#M75457</link>
      <description>or you can set the expression of body as: 
&lt;BR /&gt;""+((Integer)globalMap.get("tFileList_1_NB_FILE")) 
&lt;BR /&gt;or 
&lt;BR /&gt;"The total number of processed files is: "+((Integer)globalMap.get("tFileList_1_NB_FILE")) 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 25 Apr 2013 13:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303596#M75457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T13:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303597#M75458</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can send mail if files are not there using tFilelist havig xlsx files.&lt;/P&gt;&lt;P&gt;If files are present i need to run my job.&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;((Integer)globalMap.get("tFileList_1_NB_FILE"))&amp;gt;0 (if files present it has to run job)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;((Integer)globalMap.get("tFileList_1_NB_FILE"))==0 (send mail if files are not present&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 10:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303597#M75458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-23T10:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add integer to a body message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303598#M75459</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOLfAAO"&gt;@Lakshmi2411&lt;/A&gt;,check this should work.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;((Integer)globalMap.get("tFileList_1_NB_FILE"))&amp;lt;0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 10:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-integer-to-a-body-message/m-p/2303598#M75459</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-23T10:23:33Z</dc:date>
    </item>
  </channel>
</rss>

