<?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 Dynamically load list of files from a folder path in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-load-list-of-files-from-a-folder-path/m-p/406400#M151180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. I have a folder with a number of files in it. I would like to load the list of files in that folder into a table in QlikView. This list changes frequently, so I'd like to run some function where I pass it the file path and it dynamically generates the list of files in that folder, perhaps with a filter for the extension. Is there a function to do this? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2012 18:36:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-13T18:36:57Z</dc:date>
    <item>
      <title>Dynamically load list of files from a folder path</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-list-of-files-from-a-folder-path/m-p/406400#M151180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. I have a folder with a number of files in it. I would like to load the list of files in that folder into a table in QlikView. This list changes frequently, so I'd like to run some function where I pass it the file path and it dynamically generates the list of files in that folder, perhaps with a filter for the extension. Is there a function to do this? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 18:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-list-of-files-from-a-folder-path/m-p/406400#M151180</guid>
      <dc:creator />
      <dc:date>2012-09-13T18:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically load list of files from a folder path</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-list-of-files-from-a-folder-path/m-p/406401#M151181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think its helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub loadfiles(Files)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;For Each file in FileList('$(Files)' &amp;amp; '\*.*');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LOAD '$(file)' AS FilePath, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Len(SubField('$(file)','.',-1)) &amp;lt; 8,SubField('$(file)','.',-1),'No Extension') AS FileExtension,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileSize('$(file)') AS FileSize,FileName('$(file)') As FileName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileTime('$(file)') AS FileTime AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NEXT file;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;For Each subdir in DirList('$(Files)' &amp;amp; '\*');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL subFunction('$(subdir)')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NEXT subdir;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB subFunction(Subdir)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;For Each sub in DirList('$(Subdir)')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL loadfiles('$(sub)')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NEXT sub;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call loadfiles('E:\Qlikview -11')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 18:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-list-of-files-from-a-folder-path/m-p/406401#M151181</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-13T18:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically load list of files from a folder path</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-list-of-files-from-a-folder-path/m-p/406402#M151182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey! Very cool! Thanks a lot for that code. One thing though, it seems to work perfectly, except the FileName field comes up empty. Does it do the same for you? I'm running QV11 SR1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 19:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-list-of-files-from-a-folder-path/m-p/406402#M151182</guid>
      <dc:creator />
      <dc:date>2012-09-13T19:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically load list of files from a folder path</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-list-of-files-from-a-folder-path/m-p/406403#M151183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this for FileName:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField('$(file)','\',SubStringCount('$(file)','\')+1) As FileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its give the result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 19:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-list-of-files-from-a-folder-path/m-p/406403#M151183</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-13T19:52:11Z</dc:date>
    </item>
  </channel>
</rss>

