<?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: Help with script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780705#M1037225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That what the OP has and is trying to avoid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Dec 2014 11:26:42 GMT</pubDate>
    <dc:creator>ThornOfCrowns</dc:creator>
    <dc:date>2014-12-23T11:26:42Z</dc:date>
    <item>
      <title>Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780700#M1037220</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;&lt;/P&gt;&lt;P&gt;I have the following in my script which hard codes file locations..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vDirectory in 'C:\Temp1' ,'C:\Temp2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field in a QVD which holds all of the file locations i need. what i want to do is use that field instead of hardcoding.&lt;/P&gt;&lt;P&gt;At the moment the field isn't being loaded in at all, so i guess the first thing i need to do is load this field into its own table, but i do not know what to do after that. &lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 11:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780700#M1037220</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2014-12-23T11:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780701#M1037221</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;You can do like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vSAP = 'Demo';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory \.......\SourceDocuments\qvd\SAP\$(vSAP)\;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 11:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780701#M1037221</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2014-12-23T11:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780702#M1037222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry i dont understand. what does Demo relate to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 11:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780702#M1037222</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2014-12-23T11:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780703#M1037223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hopkinsc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like the below should work for you, you'll need to create a concat list from your qvd and then loop through based on that&lt;/P&gt;&lt;P&gt;(assuming your directory paths are in rows and not in a list already)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DIRLIST&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,',') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dir_List&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [YourQVDName.qvd]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;vDirList&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Dir_List');&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;For&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Each&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;Dir&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;In&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;$(vDirList)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//your code here&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Next &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 11:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780703#M1037223</guid>
      <dc:creator />
      <dc:date>2014-12-23T11:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780704#M1037224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Say your Folder name is Demo from where you are reading your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 11:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780704#M1037224</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2014-12-23T11:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780705#M1037225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That what the OP has and is trying to avoid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 11:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780705#M1037225</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-12-23T11:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780706#M1037226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry James my mistake &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 11:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780706#M1037226</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2014-12-23T11:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780707#M1037227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp_dirlist:&lt;/P&gt;&lt;P&gt;LOAD concat( chr(39) &amp;amp; dirlist &amp;amp; chr(39), ',') as dirlist&lt;/P&gt;&lt;P&gt;From dirlist.qvd ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDirlist = peek(dirlist) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Tmp_dirlist;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vDirectory in $(vDirlist)&lt;/P&gt;&lt;P&gt;...( rest of your script)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 12:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/780707#M1037227</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-12-23T12:00:00Z</dc:date>
    </item>
  </channel>
</rss>

