<?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 Connect multiple tFilter in 1 tMap after a tReplicate + tDBInput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Connect-multiple-tFilter-in-1-tMap-after-a-tReplicate-tDBInput/m-p/2339105#M107281</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm trying to filter data and insert it with tMap.&lt;BR /&gt;&lt;BR /&gt;I use a tDBInput &amp;gt;&amp;gt; tReplicate &amp;gt;&amp;gt; 3 tFilter filtering specific data (If column A = "xxx" then I extract the data in column B, and "xxx" change in each tFilter)&lt;BR /&gt;Then I want to connect each output of my tFilter to a single tMap. How can I do this ?&lt;BR /&gt;&lt;BR /&gt;Before, I was loading the database each time there was a tFilter : so 3 tDBInput and 3 tFilter&lt;BR /&gt;The objective is to load only one time the database.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2018 12:22:27 GMT</pubDate>
    <dc:creator>Mayot</dc:creator>
    <dc:date>2018-07-06T12:22:27Z</dc:date>
    <item>
      <title>Connect multiple tFilter in 1 tMap after a tReplicate + tDBInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-multiple-tFilter-in-1-tMap-after-a-tReplicate-tDBInput/m-p/2339105#M107281</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm trying to filter data and insert it with tMap.&lt;BR /&gt;&lt;BR /&gt;I use a tDBInput &amp;gt;&amp;gt; tReplicate &amp;gt;&amp;gt; 3 tFilter filtering specific data (If column A = "xxx" then I extract the data in column B, and "xxx" change in each tFilter)&lt;BR /&gt;Then I want to connect each output of my tFilter to a single tMap. How can I do this ?&lt;BR /&gt;&lt;BR /&gt;Before, I was loading the database each time there was a tFilter : so 3 tDBInput and 3 tFilter&lt;BR /&gt;The objective is to load only one time the database.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 12:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-multiple-tFilter-in-1-tMap-after-a-tReplicate-tDBInput/m-p/2339105#M107281</guid>
      <dc:creator>Mayot</dc:creator>
      <dc:date>2018-07-06T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Connect multiple tFilter in 1 tMap after a tReplicate + tDBInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-multiple-tFilter-in-1-tMap-after-a-tReplicate-tDBInput/m-p/2339106#M107282</link>
      <description>&lt;P&gt;Okay, it's impossible to connect differents tFilter from a tReplicate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;I was thinking that I can merge my 3 filters in a single one, then connect the output of this tFilter in the tMap, filter another time the data and finally dispatch my datas, &lt;STRONG&gt;but that dupliquate my rows&lt;/STRONG&gt; because there's no joint/link between the 2 input.&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;I was thinking that I can merge my 3 filters in a single one, then connect the output of this tFilter in the tMap, filter another time the data and finally dispatch my datas, but that dupliquate my rows because there's no joint/link between the 2 input.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;So the solution with the help of a friend :&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;Use a tJava after the tFilter to save each value in 3 contexts and then use the appropriate context in the appropriate column in the tMap.&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;&lt;P&gt;Here is the java code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;switch (input_row.SORT_CODE){
	case "Statement ID:" : {
		context.STATEMENT = input_row.COMPANY_CODE; 
		break;
	}
	case "Period:" : { 
		context.PERIODE = input_row.COMPANY_CODE; 
		break;
	}
	case "Currency :" : { 
		context.CURRENCY = input_row.COMPANY_CODE; 
		break;
	}
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;- switch is here to indicate which column I will test&lt;/P&gt;&lt;P&gt;- case&amp;nbsp; to indicate when my column match with "Statement ID:" then i save the data which is in input_row.COMPANY_CODE in my context.STATEMENT (you have to create the context &lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;for it to work&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;- break is here to stop when the value is found.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 13:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-multiple-tFilter-in-1-tMap-after-a-tReplicate-tDBInput/m-p/2339106#M107282</guid>
      <dc:creator>Mayot</dc:creator>
      <dc:date>2018-07-06T13:57:47Z</dc:date>
    </item>
  </channel>
</rss>

