<?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: Check for File Marker and then Reload in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-for-File-Marker-and-then-Reload/m-p/571726#M680864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that you will need 2 applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 application will perform the test and if successful generate the batch load process command that will load the main application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the first application will work the way that you envisage above. If the script marker is a "Y" then execute the batch process to load your main application (which will have no tests in it). The command will be similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\QlikView\qv.exe /r C:\Path\To\Document.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 09:33:38 GMT</pubDate>
    <dc:creator>Roop</dc:creator>
    <dc:date>2014-04-29T09:33:38Z</dc:date>
    <item>
      <title>Check for File Marker and then Reload</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-File-Marker-and-then-Reload/m-p/571724#M680860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I have an interesting question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I have a QV app that reloads regularly during the day at set intervals. It reads a csv&amp;nbsp; file as its main source of information as well as other files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I want the application to only reload when this main csv file has an indicator on the last row set to a Y. For example if the last row in Column1 is Y, then reload the entire application, but if it isn't don't reload the application, just leave the app in its current state.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I have tried using the peek function to get this to work to get this to work as follows, but when my condition is unfulfilled the application ends up having no data as I am using an exit script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt;Test:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM&lt;BR /&gt;[Book1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let marker = peek('Col1' , -1, 'Test');&lt;BR /&gt;&lt;BR /&gt;exit script when marker &amp;lt;&amp;gt;'Y';&amp;nbsp;&amp;nbsp; // Exit script when the file’s last row is not Y. If it is set to Y then reload the entire app&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Ideally, what I want is that if the last row of Column 1 is set to Y, then reload the application and update it with new data, but if this isn't the case, just keep the app in its previous state.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Is this possible and if yes, can someone let me know how to do it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 08:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-File-Marker-and-then-Reload/m-p/571724#M680860</guid>
      <dc:creator />
      <dc:date>2014-04-29T08:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Check for File Marker and then Reload</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-File-Marker-and-then-Reload/m-p/571725#M680862</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;Usually the data is cleared on reload.&lt;/P&gt;&lt;P&gt;You can try to use partial reload option. It keeps the data and allows to add/replace some tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 08:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-File-Marker-and-then-Reload/m-p/571725#M680862</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-04-29T08:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check for File Marker and then Reload</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-File-Marker-and-then-Reload/m-p/571726#M680864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that you will need 2 applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 application will perform the test and if successful generate the batch load process command that will load the main application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the first application will work the way that you envisage above. If the script marker is a "Y" then execute the batch process to load your main application (which will have no tests in it). The command will be similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\QlikView\qv.exe /r C:\Path\To\Document.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 09:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-File-Marker-and-then-Reload/m-p/571726#M680864</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-29T09:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Check for File Marker and then Reload</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-File-Marker-and-then-Reload/m-p/571727#M680865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rupert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's what I needed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 10:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-File-Marker-and-then-Reload/m-p/571727#M680865</guid>
      <dc:creator />
      <dc:date>2014-04-29T10:27:27Z</dc:date>
    </item>
  </channel>
</rss>

