<?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: Read folder and use the filename for further select querys in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248362#M33247</link>
    <description>&lt;P&gt;It is finished now \o/&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2019-09-18 um 15.12.54.png" style="width: 458px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7O6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133791i034876E6A6F95021/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7O6.png" alt="0683p000009M7O6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;- FileList reads the folder context.inputdir&lt;/P&gt; 
&lt;P&gt;- iterateToFlow change the internal way to work (my guess)&lt;/P&gt; 
&lt;P&gt;- JavaRow read each filename and extract the information that is needed&lt;/P&gt; 
&lt;P&gt;- change flow&lt;/P&gt; 
&lt;P&gt;- DBInput read each line from db with "... and FIELD = "+((Integer)globalMap.get("row2.FIELDNAME"))"&lt;/P&gt; 
&lt;P&gt;- change flow&lt;/P&gt; 
&lt;P&gt;- FileCopy rename and move the file if a record was found in database&lt;/P&gt; 
&lt;P&gt;-- Name: context.inputdir + "/" + (String)globalMap.get("row2.filename")&lt;/P&gt; 
&lt;P&gt;-- Target-Folder: context.outputdir&lt;/P&gt; 
&lt;P&gt;-- Filename: (String)globalMap.get("row3.DBFIELD1")+"#"+(String)globalMap.get("row3.DBFIELD2")+"#"+context.GLOBALFIELD3+"#"+(String)globalMap.get("row2.LOCALFIELD4")&lt;BR /&gt;&lt;BR /&gt;## row2.LOCALFIELD4 comes from the javarow (strsplit), there is already the fileextension in it (lucky "error" while working with it).&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2019 14:21:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-18T14:21:52Z</dc:date>
    <item>
      <title>Read folder and use the filename for further select querys</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248358#M33243</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to read a folder to got all pdf-files in there.&lt;/P&gt; 
&lt;P&gt;The filename need to be splitted, because there are parts in it that I need for my SELECT Statement.&lt;BR /&gt;I wanted to do this wich tJAVARow (any better idea?).&lt;BR /&gt;First I used "sysout" to show me my filenames. I got the correct rows but always with the same filename (tFileList_1_CURRENT_FILE).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tFileList --iterate -- titerateToFlow_1 -- tJavaRow (next planning: -&amp;gt; "query to got other informations and rename the file).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Which one is the correct Oracle DB Object? There a a low of it. Is a map necessary?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Inputfile: order_123456_2018_12_26.pdf&lt;BR /&gt;Output: DB_ROW1#DB_ROW2#AAA#DATE#OLDNAME.pdf&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248358#M33243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Read folder and use the filename for further select querys</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248359#M33244</link>
      <description>first use tmap in place of tjavaRow (best practices). with lookup on tDBinput&lt;BR /&gt;use (tFileList_1_CURRENT_FILEPATH). to get full path of file.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248359#M33244</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-17T14:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read folder and use the filename for further select querys</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248360#M33245</link>
      <description>Thx for Reply.
&lt;BR /&gt;
&lt;BR /&gt;I used tJavaRow and now I got my values with input_row.NAME and can write it back with output_row.NAME.
&lt;BR /&gt;
&lt;BR /&gt;But I dont know how to use it for my select statement and I need a way to decide what to do next.
&lt;BR /&gt;1 row -&amp;gt; rename and move file
&lt;BR /&gt;0 row -&amp;gt; do something else</description>
      <pubDate>Tue, 17 Sep 2019 15:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248360#M33245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T15:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Read folder and use the filename for further select querys</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248361#M33246</link>
      <description>I got new ideas and I can debug some variables.
&lt;BR /&gt;tOracleRow_2_Query has my SQL with a part of the filename.
&lt;BR /&gt;
&lt;BR /&gt;Now I search a way to got the resultset.
&lt;BR /&gt;Try n Error and Researching the internet doesn't work jet.</description>
      <pubDate>Wed, 18 Sep 2019 10:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248361#M33246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-18T10:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Read folder and use the filename for further select querys</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248362#M33247</link>
      <description>&lt;P&gt;It is finished now \o/&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2019-09-18 um 15.12.54.png" style="width: 458px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7O6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133791i034876E6A6F95021/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7O6.png" alt="0683p000009M7O6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;- FileList reads the folder context.inputdir&lt;/P&gt; 
&lt;P&gt;- iterateToFlow change the internal way to work (my guess)&lt;/P&gt; 
&lt;P&gt;- JavaRow read each filename and extract the information that is needed&lt;/P&gt; 
&lt;P&gt;- change flow&lt;/P&gt; 
&lt;P&gt;- DBInput read each line from db with "... and FIELD = "+((Integer)globalMap.get("row2.FIELDNAME"))"&lt;/P&gt; 
&lt;P&gt;- change flow&lt;/P&gt; 
&lt;P&gt;- FileCopy rename and move the file if a record was found in database&lt;/P&gt; 
&lt;P&gt;-- Name: context.inputdir + "/" + (String)globalMap.get("row2.filename")&lt;/P&gt; 
&lt;P&gt;-- Target-Folder: context.outputdir&lt;/P&gt; 
&lt;P&gt;-- Filename: (String)globalMap.get("row3.DBFIELD1")+"#"+(String)globalMap.get("row3.DBFIELD2")+"#"+context.GLOBALFIELD3+"#"+(String)globalMap.get("row2.LOCALFIELD4")&lt;BR /&gt;&lt;BR /&gt;## row2.LOCALFIELD4 comes from the javarow (strsplit), there is already the fileextension in it (lucky "error" while working with it).&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 14:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-folder-and-use-the-filename-for-further-select-querys/m-p/2248362#M33247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-18T14:21:52Z</dc:date>
    </item>
  </channel>
</rss>

