<?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: One Input to multiple output function in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196402#M578</link>
    <description>&lt;P&gt;Thanks for the reply. This is really interesting for a person like me, who is an entry level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, i tried the same logic (as below) given in the link to your post&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Var.prev_county!=null &amp;amp;&amp;amp; Var.prev_county.compareToIgnoreCase(row11.Country)==0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;? row11.Email :row11.Email&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here the Email is not getting lined up for same &lt;STRONG&gt;country&lt;/STRONG&gt; as below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;abc1@abc.com, abc2@abc.com, abc3@abc.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;instead it is displaying the result (Email) one by one. I&amp;nbsp;think this is because of using ur logic (in that link) as it is.&lt;/P&gt;&lt;P&gt;Can you please tell me where i went wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Sep 2018 12:36:13 GMT</pubDate>
    <dc:creator>joe86</dc:creator>
    <dc:date>2018-09-18T12:36:13Z</dc:date>
    <item>
      <title>One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196394#M570</link>
      <description>&lt;P&gt;i have a data set as below (only dummy):&lt;/P&gt;&lt;P&gt;Country; Person; Email&lt;/P&gt;&lt;P&gt;India; abc; 123@gmail.com&lt;/P&gt;&lt;P&gt;India; def; 456@gmail.com&lt;/P&gt;&lt;P&gt;India; xyz; 356@gmail.com&lt;/P&gt;&lt;P&gt;USA; hjg; 876@gmail.com&lt;/P&gt;&lt;P&gt;USA; jki; 986@gmail.com&lt;/P&gt;&lt;P&gt;Canada; oiu; 354@gmail.com&lt;/P&gt;&lt;P&gt;Canada; uyr; 876@gmailcom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the above data set is a result set of my logic. i need to send a mail as below:&lt;/P&gt;&lt;P&gt;1. &lt;SPAN&gt;All persons listed in India should get one mail and that mail body/atachment should not have other country details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. All persons listed in USA should get one mail and that mail body/atachment should not have other country details.&lt;/P&gt;&lt;P&gt;Similar for Canada also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my actual result set, there will be around 50 countries. I do not prefer writing 50 outputs using tMap. Rather would like to implement some looping kind of stuff. Not sure how to build that. Can someone please help?&lt;/P&gt;&lt;P&gt;Can someone please help on how to being this.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 12:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196394#M570</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-09-17T12:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196395#M571</link>
      <description>&lt;P&gt;Can you keep that body/attachment (info pointing to or actual attachment) in a database? If so, you can simply join to your dataset and out put a different body/attachment using a single tMap output.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 12:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196395#M571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-17T12:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196396#M572</link>
      <description>&lt;P&gt;Yes, i thought of that option. But we are &lt;STRONG&gt;not&lt;/STRONG&gt; allowed to store the data in any other DB.&lt;/P&gt;
&lt;P&gt;My problem is, how will i send separate mails from the data set?&lt;/P&gt;
&lt;P&gt;If person 123 belongs to India, he should receive the data w.r.t India and not USA/Canada.&lt;/P&gt;
&lt;P&gt;FYI, the source for this is from SQL DB &amp;amp; MongoDB.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196396#M572</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-09-17T13:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196397#M573</link>
      <description>&lt;P&gt;OK, I understand that you cannot keep the data in your database, but you will have to keep it somewhere. Anywhere you keep that data, it can be acquired by Talend. You just need to be able to point to it. Do you have the body in a file somewhere (for each country?), you just need a filepath to that file(s). There is absolutely no need to have an output in your tMap for every country.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 14:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196397#M573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-17T14:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196398#M574</link>
      <description>Hello! Thanks for your reply.&lt;BR /&gt;Sorry I am not clear on ur point. Actually, I have one output file which has 10 columns. This file will be sent (as attachment) in a mail to a specific list of users.&lt;BR /&gt;I have to send another mail to users given in the above output file. But these users are grouped based on Country. So that, users belonging to one country will receive details only about them and it will not include details of others users from different countries. This is my actual requirement.&lt;BR /&gt;&lt;BR /&gt;Can you please explain your solution on this?&lt;BR /&gt;Sorry, i am new to Talend. So i find it difficult to select the components.&lt;BR /&gt;&lt;BR /&gt;My thoughts:&lt;BR /&gt;I created a file with list of users and their countries. Then I join this output with the above output file. Then using a tFlowToIterate, i tried to run a loop. Please let me know if this approach is correct or any better solutions. I am also stuck in the output of tFlowToIterate.</description>
      <pubDate>Tue, 18 Sep 2018 07:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196398#M574</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-09-18T07:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196399#M575</link>
      <description>&lt;P&gt;Sorry, I thought this was more complicated. This appears relatively straight forward. You are storing your data in rows. Data within rows do not get mixed or aggregated unless you actively work to do that. Therefore you can connect to a tSendMail and your data will be sent out as you wish. One email per row in your above table&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 09:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196399#M575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-18T09:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196400#M576</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.JPG" style="width: 518px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0HL.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130049i39C2EDBF48527B48/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0HL.jpg" alt="0683p000009M0HL.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Above is my final data set. What i have to do is given in the 4th column.&lt;/P&gt; 
&lt;P&gt;The Customer should get mail about the country to which they belong.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 11:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196400#M576</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-09-18T11:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196401#M577</link>
      <description>&lt;P&gt;OK. I get it now. The way I would do this is to create a flow like below....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Initial data ------&amp;gt;tSortRow------&amp;gt; tMap-------&amp;gt;tAggregateRow------&amp;gt;tSendMail&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First you need to sort your initial data by country. Once it is sorted by country, you can use the tMap to build your TO list. Now this is the complicated bit. You need to use the tMap variables' functionality to hold data between rows to do this. BUT you also need to clear the data when the country changes. So given the data set you have shown, when the country is India, your TO variable will grow like this.....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;abc1@abc.com&lt;/P&gt; 
&lt;P&gt;abc1@abc.com, abc2@abc.com&lt;/P&gt; 
&lt;P&gt;abc1@abc.com, abc2@abc.com, abc3@abc.com&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;.....at this point the country changes and the TO variable will be reset. I do something similar in this mini tutorial (&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjPhCAK#M595" target="_blank"&gt;https://community.talend.com/t5/How-Tos-and-Best-Practices/Compare-row-value-against-a-value-from-the-previous-row/m-p/133710#M595&lt;/A&gt;). Pay attention to logic for recognising when the group key value has changed and how I reset the variables.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;After the tMap, you will end up with multiple rows per country....but you want one. This is why we have the taggregateRow. Group by country and set the column functions to Last for all rows. This will return 1 row per country, with your complete TO string returned (as it will be complete for the last row processed for each country).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is a good lesson to get to grips with some cool tMap functionality.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 11:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196401#M577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-18T11:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196402#M578</link>
      <description>&lt;P&gt;Thanks for the reply. This is really interesting for a person like me, who is an entry level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, i tried the same logic (as below) given in the link to your post&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Var.prev_county!=null &amp;amp;&amp;amp; Var.prev_county.compareToIgnoreCase(row11.Country)==0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;? row11.Email :row11.Email&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here the Email is not getting lined up for same &lt;STRONG&gt;country&lt;/STRONG&gt; as below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;abc1@abc.com, abc2@abc.com, abc3@abc.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;instead it is displaying the result (Email) one by one. I&amp;nbsp;think this is because of using ur logic (in that link) as it is.&lt;/P&gt;&lt;P&gt;Can you please tell me where i went wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196402#M578</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-09-18T12:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196403#M579</link>
      <description>&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;From the link you have given i tried below logic&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Var.prev_county!=null &amp;amp;&amp;amp; Var.prev_county.compareToIgnoreCase(row11.CountyFA)==0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;? row11.ContactEmail : row11.ContactEmail &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And this dose not return data as "&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;abc1@abc.com, abc2@abc.com, abc3@abc.com&lt;/STRONG&gt;" Instead it prints the Email one by one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please correct my logic and let me know&amp;nbsp;where i went wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FYI. From the data set i shared (as attachment) before, a total of only 4 mails will be triggered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One each for India, USA, Canada &amp;amp; Japan.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 13:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196403#M579</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-09-18T13:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196404#M580</link>
      <description>&lt;P&gt;Did this solve your issue?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 09:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196404#M580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T09:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: One Input to multiple output function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196405#M581</link>
      <description>i replied to you yesterday with a query. Not sure, why was it not displayed here. Anyways, just modified a bit of ur valiable (from the link provided) and it worked. But still, there was an issue. I wanted to send mail one by one - Customer from India will get one mail, Customer from USA will get one mail, Customer from Canada will get one mail. And these mails will not have details of other countries. For that I was stuck in iterate process. And at last it woked out 
&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; 
&lt;BR /&gt;Thanks for ur support and patience 
&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;</description>
      <pubDate>Wed, 19 Sep 2018 10:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-Input-to-multiple-output-function/m-p/2196405#M581</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-09-19T10:09:53Z</dc:date>
    </item>
  </channel>
</rss>

