<?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 split list of files stored in variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329619#M98794</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm storing all files in a context variable and then passing that variable to tsendmail to get list of files.&lt;BR /&gt;&lt;BR /&gt;But in list I have two types of file, one is "A.xls.b" and second is "A.xls.g"&lt;BR /&gt;&lt;BR /&gt;but when I pass variable in tsendmail, I get output like&lt;BR /&gt;&lt;BR /&gt;Files: A.xls.b, A.xls.g&lt;BR /&gt;&lt;BR /&gt;But I need files like&lt;BR /&gt;&lt;BR /&gt;B Files: A.xls.b&lt;BR /&gt;G Files: A.xls.g&lt;BR /&gt;&lt;BR /&gt;Can I get any suggestion ?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2016 12:45:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-12T12:45:35Z</dc:date>
    <item>
      <title>split list of files stored in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329619#M98794</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm storing all files in a context variable and then passing that variable to tsendmail to get list of files.&lt;BR /&gt;&lt;BR /&gt;But in list I have two types of file, one is "A.xls.b" and second is "A.xls.g"&lt;BR /&gt;&lt;BR /&gt;but when I pass variable in tsendmail, I get output like&lt;BR /&gt;&lt;BR /&gt;Files: A.xls.b, A.xls.g&lt;BR /&gt;&lt;BR /&gt;But I need files like&lt;BR /&gt;&lt;BR /&gt;B Files: A.xls.b&lt;BR /&gt;G Files: A.xls.g&lt;BR /&gt;&lt;BR /&gt;Can I get any suggestion ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329619#M98794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T12:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: split list of files stored in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329620#M98795</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Files: A.xls.b, A.xls.g&lt;/FONT&gt;&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Is this a string you write in the message field of tSendMail?</description>
      <pubDate>Tue, 12 Jan 2016 14:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329620#M98795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T14:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: split list of files stored in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329621#M98796</link>
      <description>Hi Shong 
&lt;BR /&gt; 
&lt;BR /&gt;In message filed of tsendmail I pass only only context variable in which I'm storing list of all files. 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/155571/blob_20160106-1535.png"&gt;https://www.talendforge.org/forum/img/members/155571/mini_blob_20160106-1535.png&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;After taggregaterow component, In my job am using tjavarow component. In that component I have put up that context variable. 
&lt;BR /&gt; 
&lt;BR /&gt;In tfilelist, I have two types of files like I said one type is "A1.xls.b" and second is "A2.xls.g" 
&lt;BR /&gt; 
&lt;BR /&gt;I want to send email, list of these files should be appeared in received mail like this 
&lt;BR /&gt; 
&lt;BR /&gt;b Files: A1.xls.b 
&lt;BR /&gt;g Files: 2.xls.g 
&lt;BR /&gt; 
&lt;BR /&gt;Not Like this: 
&lt;BR /&gt;Files: A2.xls.g, A1.xls.b&amp;nbsp; (Note: this type of input I'm receiving right now cos I have set up a context variable "Files" with datatype list and value "Files : " in context.) 
&lt;BR /&gt; 
&lt;BR /&gt;And In tjavarow, code written is context.Files = context.Files+input_row.ColumnName 
&lt;BR /&gt; 
&lt;BR /&gt;But I need out like I said. 
&lt;BR /&gt; 
&lt;BR /&gt;Any suggestion ?</description>
      <pubDate>Tue, 12 Jan 2016 16:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329621#M98796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T16:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: split list of files stored in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329622#M98797</link>
      <description>Are you wanting to attach the files you have named in your context variable or do you just want to list the filenames as you have shown above? This needs to be clarified. If you want to just list the filenames in the email message, then you will need to prepare the context variable to hold the values already formatted (using carriage returns, etc). If you are wanting to attach the files using the names, then I think you need to rethink your solution a little.&amp;nbsp;</description>
      <pubDate>Tue, 12 Jan 2016 16:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329622#M98797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T16:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: split list of files stored in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329623#M98798</link>
      <description>I just need the name of the files in message with the format I have mentioned.</description>
      <pubDate>Tue, 12 Jan 2016 17:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329623#M98798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T17:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: split list of files stored in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329624#M98799</link>
      <description>OK, try something like this.
&lt;BR /&gt;Edit your context variable to add this ("\r\n")&amp;nbsp;between your filenames. So, as a simple example, if you wanted to manually create a String with the filenames in, you would do it something like below.....
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;context.Files = "b Files: A1.xls.b" + "\r\n" + "g Files: 2.xls.g" + "\r\n" + "c Files: 3.xls.c";&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jan 2016 22:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329624#M98799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T22:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: split list of files stored in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329625#M98800</link>
      <description>Hey rhall 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;context.Files = "b Files: A1.xls.b" + "\r\n" + "g Files: 2.xls.g" + "\r\n" + "c Files: 3.xls.c";&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Its a output am receiving through email when I pass parameter in tsendmail. At tjavarow component I have to split I think.</description>
      <pubDate>Wed, 13 Jan 2016 02:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329625#M98800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-13T02:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: split list of files stored in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329626#M98801</link>
      <description>It doesn't matter where you try out the code I have posted, just do it before you try and use the context variable. There is no guarantee it will work, but that is the first thing I would try.</description>
      <pubDate>Wed, 13 Jan 2016 09:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-list-of-files-stored-in-variable/m-p/2329626#M98801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-13T09:28:34Z</dc:date>
    </item>
  </channel>
</rss>

