<?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 conditional flow of data in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330871#M99909</link>
    <description>Hi 
&lt;BR /&gt;I have the following problem 
&lt;BR /&gt;i have to export data from a source database to either excel sheets or dB depending upon a context variable. 
&lt;BR /&gt;I tried using treplicate, but it does not have condition for the flow 
&lt;BR /&gt;I tried using tmap and put the condition in the expression filter. 
&lt;BR /&gt;This works but there is one catch 
&lt;BR /&gt;the output filename and the db conn string both are needed regardless of what the output is. 
&lt;BR /&gt;i assume this is because the flow is happening to both even if there are no rows passing through it. 
&lt;BR /&gt;so is there way to stop the flow using tjava or some other component 
&lt;BR /&gt;or is there a better solution than i am doing 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Vijay</description>
    <pubDate>Sat, 16 Nov 2024 13:29:22 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2024-11-16T13:29:22Z</dc:date>
    <item>
      <title>conditional flow of data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330871#M99909</link>
      <description>Hi 
&lt;BR /&gt;I have the following problem 
&lt;BR /&gt;i have to export data from a source database to either excel sheets or dB depending upon a context variable. 
&lt;BR /&gt;I tried using treplicate, but it does not have condition for the flow 
&lt;BR /&gt;I tried using tmap and put the condition in the expression filter. 
&lt;BR /&gt;This works but there is one catch 
&lt;BR /&gt;the output filename and the db conn string both are needed regardless of what the output is. 
&lt;BR /&gt;i assume this is because the flow is happening to both even if there are no rows passing through it. 
&lt;BR /&gt;so is there way to stop the flow using tjava or some other component 
&lt;BR /&gt;or is there a better solution than i am doing 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Vijay</description>
      <pubDate>Sat, 16 Nov 2024 13:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330871#M99909</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: conditional flow of data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330872#M99910</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;the output filename and the db conn string both are needed regardless of what the output is.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I don't understand you here, can you give us an example? 
&lt;BR /&gt;About the filter rows, you can use the tFilterRow component. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Sun, 28 Mar 2010 10:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330872#M99910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-28T10:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: conditional flow of data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330873#M99911</link>
      <description>Hi
&lt;BR /&gt;The final output is going to be only one. Either Excel or DB.
&lt;BR /&gt;I have a context variable "OutputType" this has a value "Excel" or "DB"
&lt;BR /&gt;I also have the file details (filename, filepath etc)and DB conn detals (server, username password etc) in the contexts
&lt;BR /&gt;If the value is "Excel" then the output should be redirected to Excel file.
&lt;BR /&gt;If the output is "DB" then the output should be redirected to a DB.
&lt;BR /&gt;I populate the Context variable during runtime using a XML file and TContextLoad.
&lt;BR /&gt;If it is Excel then i will have the "filename" and "filepath" context variables populated and the DB details blank (as i do not know it)
&lt;BR /&gt;and if DB vice versa.
&lt;BR /&gt;So in my scenario assume i have the output to Excel, then my DB details will be blank. if i run the job then i get an exception on the DB component.
&lt;BR /&gt;is there a way to completely stop the flow to the DB component if the outpuy type is Excel
&lt;BR /&gt;This is the structure of my job
&lt;BR /&gt;TmsssqlOutput --&amp;gt; Tmap --&amp;gt; TfileinputExcel
&lt;BR /&gt; |
&lt;BR /&gt; v
&lt;BR /&gt; Tmsssqlinput
&lt;BR /&gt;
&lt;BR /&gt;Hope this is clear</description>
      <pubDate>Sun, 28 Mar 2010 11:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330873#M99911</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-03-28T11:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: conditional flow of data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330874#M99912</link>
      <description>hello,&lt;BR /&gt;I have the same problem. &lt;BR /&gt;I need to output to either a mysql database or an excel file based on a context variable.&lt;BR /&gt;Any solution how this can be done.&lt;BR /&gt;Thanks a lot for your help,&lt;BR /&gt;Tawfiq</description>
      <pubDate>Thu, 08 Jul 2010 08:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330874#M99912</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-07-08T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: conditional flow of data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330875#M99913</link>
      <description>Have a look at 
&lt;A href="http://community.talend.com:80/t5/Design-and-Development/How-to-use-Trigger-Run-If/m-p/3333#M268" target="_blank"&gt;this post&lt;/A&gt;.</description>
      <pubDate>Fri, 09 Jul 2010 03:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-flow-of-data/m-p/2330875#M99913</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-09T03:53:56Z</dc:date>
    </item>
  </channel>
</rss>

