<?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 Retrieve files with TFileList given a context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-files-with-TFileList-given-a-context-variable/m-p/2245515#M31350</link>
    <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8xT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154012i59C1DA6BA2391DFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8xT.png" alt="0683p000009M8xT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Hi, I have the above job, the component ListSourceFolder is a tfilelist, the filemask of this component retrieves files from a folder this folder contains this files: File1.txt, File2.txt, File3.txt and File4.txt.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a context variable "cVariable".&lt;/P&gt; 
&lt;P&gt;When I run the job, if cVariable contains the value 'y' then the&amp;nbsp;ListSourceFolder retrieves the following files :&amp;nbsp;File1.txt, File2.txt, File3.txt.&lt;/P&gt; 
&lt;P&gt;If cVariable contains the values 'n' the the&amp;nbsp;ListSourceFolder&amp;nbsp; retrieves&amp;nbsp;&amp;nbsp;File4.txt, File2.txt, File3.txt.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I do this without having to duplicate all the section "Transfer file from source folder to Input folder" that you see in the above image?&amp;nbsp; I'm using and older version of talend: 3.1&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:37:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T03:37:54Z</dc:date>
    <item>
      <title>Retrieve files with TFileList given a context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-files-with-TFileList-given-a-context-variable/m-p/2245515#M31350</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8xT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154012i59C1DA6BA2391DFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8xT.png" alt="0683p000009M8xT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Hi, I have the above job, the component ListSourceFolder is a tfilelist, the filemask of this component retrieves files from a folder this folder contains this files: File1.txt, File2.txt, File3.txt and File4.txt.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a context variable "cVariable".&lt;/P&gt; 
&lt;P&gt;When I run the job, if cVariable contains the value 'y' then the&amp;nbsp;ListSourceFolder retrieves the following files :&amp;nbsp;File1.txt, File2.txt, File3.txt.&lt;/P&gt; 
&lt;P&gt;If cVariable contains the values 'n' the the&amp;nbsp;ListSourceFolder&amp;nbsp; retrieves&amp;nbsp;&amp;nbsp;File4.txt, File2.txt, File3.txt.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I do this without having to duplicate all the section "Transfer file from source folder to Input folder" that you see in the above image?&amp;nbsp; I'm using and older version of talend: 3.1&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieve-files-with-TFileList-given-a-context-variable/m-p/2245515#M31350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve files with TFileList given a context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-files-with-TFileList-given-a-context-variable/m-p/2245516#M31351</link>
      <description>if file list for Y is known then you just have to use tmap who lookup on file name list for y .&lt;BR /&gt;&lt;BR /&gt;the best yaw may be to use tIterate to flow to build filst of file then add flag to the list then call subjob for each file using context to give file path to subjob.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Thu, 09 Jan 2020 14:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieve-files-with-TFileList-given-a-context-variable/m-p/2245516#M31351</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2020-01-09T14:41:49Z</dc:date>
    </item>
  </channel>
</rss>

