<?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 Check for a file from the edit script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184867#M713752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone please help me out with the script. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Sep 2010 12:13:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-02T12:13:22Z</dc:date>
    <item>
      <title>Check for a file from the edit script</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184866#M713751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to check for a file from the edit script and the script should run till the file is present/exist.&lt;/P&gt;&lt;P&gt;I have given the logic below, but I am not able to make it work completely.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;If Filesize('C:\textfile.txt) &amp;gt;0 then&lt;/P&gt;&lt;P&gt;Load * from textfile.txt&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;sleep 300 //Wait for 5 minutes&lt;/P&gt;&lt;P&gt;and re-execute the above script"&lt;/P&gt;&lt;P&gt;Can someone please help me out with the script. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 06:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184866#M713751</guid>
      <dc:creator />
      <dc:date>2010-09-02T06:59:33Z</dc:date>
    </item>
    <item>
      <title>Check for a file from the edit script</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184867#M713752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone please help me out with the script. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 12:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184867#M713752</guid>
      <dc:creator />
      <dc:date>2010-09-02T12:13:22Z</dc:date>
    </item>
    <item>
      <title>Check for a file from the edit script</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184868#M713753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Use a do loop statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;DO Table: Load * from textfile.txt; sleep 300000;LOOP WHILE Filesize('C:\textfile.txt) &amp;gt; 0;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 12:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184868#M713753</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-02T12:40:44Z</dc:date>
    </item>
    <item>
      <title>Check for a file from the edit script</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184869#M713754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sub loadfile&lt;BR /&gt;If Filesize('C:\textfile.txt) &amp;gt;0 then&lt;BR /&gt;&lt;BR /&gt;Load * from textfile.txt&lt;BR /&gt;&lt;BR /&gt;else&lt;BR /&gt;&lt;BR /&gt;sleep 300000 //Wait for 5 minutes&lt;BR /&gt;call loadfile // repeat this sub&lt;BR /&gt;end if&lt;BR /&gt;end sub&lt;BR /&gt;&lt;BR /&gt;call loadfile&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;This should do the trick. I would also add a counting variable to limit the number of attempts.&lt;BR /&gt;Note I revised the sleep time to milliseconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 12:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184869#M713754</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2010-09-02T12:48:13Z</dc:date>
    </item>
    <item>
      <title>Check for a file from the edit script</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184870#M713755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel A. Baeyens,&lt;/P&gt;&lt;P&gt;I just got the idea seeing this logic and felt like why it can't be used for auto reload if the user every time wants the up to date data. As qlikview desktop doesn't have auto reload facility I felt this will better option for those who wants to see the latest data.&lt;/P&gt;&lt;P&gt;Hope this logic will not take too much of memory.&lt;/P&gt;&lt;P&gt;Correct me if I am wrong some where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 12:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184870#M713755</guid>
      <dc:creator />
      <dc:date>2010-09-02T12:55:32Z</dc:date>
    </item>
    <item>
      <title>Check for a file from the edit script</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184871#M713756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Tanela and Miquel. Your method works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 13:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184871#M713756</guid>
      <dc:creator />
      <dc:date>2010-09-02T13:25:44Z</dc:date>
    </item>
    <item>
      <title>Check for a file from the edit script</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184872#M713757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tanel,&lt;/P&gt;&lt;P&gt;It would be helpful, if you can suggest how to use counter (say limit to 20 counts/try) inside this script and throw an error after that . Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 13:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184872#M713757</guid>
      <dc:creator />
      <dc:date>2010-09-02T13:28:36Z</dc:date>
    </item>
    <item>
      <title>Check for a file from the edit script</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184873#M713758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For simple limit of tries I suggest below (no error thrown), but you can of couse modify it,&lt;BR /&gt;like call msgbox or exit script if vLoadAttempt=21.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;set vLoadAttempt = 1;&lt;BR /&gt;&lt;BR /&gt;sub loadfile&lt;BR /&gt;If Filesize('C:\textfile.txt) &amp;gt;0 then&lt;BR /&gt;&lt;BR /&gt;Load * from textfile.txt&lt;BR /&gt;&lt;BR /&gt;else&lt;BR /&gt;&lt;BR /&gt;let vLoadAttempt ='$(vLoadAttempt)'+1;&lt;BR /&gt;if vLoadAttempt&amp;lt;=20 then&lt;BR /&gt;sleep 300000 //Wait for 5 minutes&lt;BR /&gt;call loadfile // repeat this sub&lt;BR /&gt;end if&lt;BR /&gt;end if&lt;BR /&gt;end sub&lt;BR /&gt;&lt;BR /&gt;call loadfile&lt;BR /&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 13:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-a-file-from-the-edit-script/m-p/184873#M713758</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2010-09-02T13:51:22Z</dc:date>
    </item>
  </channel>
</rss>

