<?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: Loop not creating table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-not-creating-table/m-p/600750#M684168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both - I knew it would be something like that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 11:56:43 GMT</pubDate>
    <dc:creator>juleshartley</dc:creator>
    <dc:date>2014-02-18T11:56:43Z</dc:date>
    <item>
      <title>Loop not creating table</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-not-creating-table/m-p/600747#M684165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I've obviously missing something obvious here! i have this loop, which is meant to cyle through qvw's stored in a certain directory and return simple file information... however it is not returning a table at all. I have debugged and it steps through the files but no table 'Data' is created!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET FilePath='*.qvw';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub DoDir (Dir)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; for each File in filelist (Dir&amp;amp;'\'&amp;amp;'$(FilePath)')&lt;/P&gt;&lt;P&gt;SET sFile = $(File);&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load 'Test' as FileName; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; next File&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;//Call the procedure "DoDir" to check for files in this directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call DoDir ('D:\Work\Reference');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 11:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-not-creating-table/m-p/600747#M684165</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2014-02-18T11:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loop not creating table</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-not-creating-table/m-p/600748#M684166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sth like:&lt;/P&gt;&lt;P&gt;LOAD $(File) as FileName&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You always need a source (a file, a database) or Autogenerate N to populate a table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 11:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-not-creating-table/m-p/600748#M684166</guid>
      <dc:creator />
      <dc:date>2014-02-18T11:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loop not creating table</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-not-creating-table/m-p/600749#M684167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the below script.&lt;/P&gt;&lt;P&gt;SET FilePath='*.qvw';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub DoDir (Dir)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each File in filelist (Dir&amp;amp;'\'&amp;amp;'$(FilePath)')&lt;/P&gt;&lt;P&gt;SET sFile = $(File);&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load 'Test' as FileName &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AUTOGENERATE 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next File&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 DoDir ('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;D:\Work\Reference&lt;/SPAN&gt;');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 11:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-not-creating-table/m-p/600749#M684167</guid>
      <dc:creator />
      <dc:date>2014-02-18T11:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Loop not creating table</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-not-creating-table/m-p/600750#M684168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both - I knew it would be something like that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 11:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-not-creating-table/m-p/600750#M684168</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2014-02-18T11:56:43Z</dc:date>
    </item>
  </channel>
</rss>

