<?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: List from subfolders in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/1829400#M1214313</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;LET vRootPath = 'C:\Temp\FolderA\';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;For each vSubFolder in DirList('$(vRootPath)*')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; &amp;nbsp; Mid('$(vSubFolder)', 1+ len('$(vRootPath)')) as FolderA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; AutoGenerate 1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;next&amp;nbsp;vSubFolder &lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 12:03:53 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2021-08-18T12:03:53Z</dc:date>
    <item>
      <title>List from subfolders</title>
      <link>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/1829382#M1214309</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I want to create from the folder &lt;STRONG&gt;FolderA&lt;/STRONG&gt; with path (N:\Dashboard\FolderA) a list with the subfolders of &lt;U&gt;FolderA&lt;/U&gt; (also &lt;EM&gt;FolderA1&lt;/EM&gt;, &lt;EM&gt;FolderA2&lt;/EM&gt;,&lt;EM&gt;FolderA3&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;The desired output then:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FolderA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FolderA1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FolderA2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FolderA3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help please?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 11:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/1829382#M1214309</guid>
      <dc:creator>AmCh</dc:creator>
      <dc:date>2021-08-18T11:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: List from subfolders</title>
      <link>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/1829388#M1214311</link>
      <description>&lt;P&gt;You can create folders with qlikview by execute statements.&lt;/P&gt;&lt;P&gt;Try a script like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LET vRootPath = '&lt;SPAN&gt;N:\Dashboard\FolderA&lt;/SPAN&gt;\';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FOR each vSubFolder in 'FolderA1', 'FolderA2'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Execute cmd.exe /C mkdir $(vRootPath)&amp;amp;$(vSubFolder);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;next vSubFolder&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PS: you might need to adjust your settings to allow the script to run write and execute statements.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 11:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/1829388#M1214311</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-08-18T11:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: List from subfolders</title>
      <link>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/1829392#M1214312</link>
      <description>&lt;P&gt;Hi Vegar,&lt;/P&gt;&lt;P&gt;thank you for your prompt response.&lt;BR /&gt;I want actually to create a field from already existed FolderA.&lt;/P&gt;&lt;P&gt;FolderA exists with the path '&lt;SPAN&gt;N:\Dashboard\FolderA'. Its subfolders exist as well and are FolderA1 and FolderA2.&lt;BR /&gt;I want just to create a field with the name FolderA and with field values FolderA1 and FolderA2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 11:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/1829392#M1214312</guid>
      <dc:creator>AmCh</dc:creator>
      <dc:date>2021-08-18T11:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: List from subfolders</title>
      <link>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/1829400#M1214313</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;LET vRootPath = 'C:\Temp\FolderA\';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;For each vSubFolder in DirList('$(vRootPath)*')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; &amp;nbsp; Mid('$(vSubFolder)', 1+ len('$(vRootPath)')) as FolderA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; AutoGenerate 1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;next&amp;nbsp;vSubFolder &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 12:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/1829400#M1214313</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-08-18T12:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: List from subfolders</title>
      <link>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/2126704#M1224662</link>
      <description>&lt;P&gt;Perfect!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 15:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-from-subfolders/m-p/2126704#M1224662</guid>
      <dc:creator>Amit</dc:creator>
      <dc:date>2023-10-09T15:56:47Z</dc:date>
    </item>
  </channel>
</rss>

