<?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 Last Saved Date and timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Saved-Date-and-timestamp/m-p/440380#M164120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a document that reloads every twenty minutes. I am looking for a way to flag the "new data" and I want to use the date that the docement was last saved. Is there a way to call this date and timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Jeff &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2013 19:48:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-21T19:48:12Z</dc:date>
    <item>
      <title>Last Saved Date and timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Saved-Date-and-timestamp/m-p/440380#M164120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a document that reloads every twenty minutes. I am looking for a way to flag the "new data" and I want to use the date that the docement was last saved. Is there a way to call this date and timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Jeff &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 19:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Saved-Date-and-timestamp/m-p/440380#M164120</guid>
      <dc:creator />
      <dc:date>2013-01-21T19:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Last Saved Date and timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Saved-Date-and-timestamp/m-p/440381#M164121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best solution is to use the timestamp when the script start running, to avoid any conflict if some records are changed during the document reload. An example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: CourierNewPSMT;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let ThisExecTime = Now( );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV_Table:&lt;BR /&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;BR /&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#&lt;BR /&gt;AND ModificationTime &amp;lt; #$(ThisExecTime)#;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ScriptErrorCount = 0 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; STORE QV_Table INTO File.QVD;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Let LastExecTime = ThisExecTime;&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 19:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Saved-Date-and-timestamp/m-p/440381#M164121</guid>
      <dc:creator />
      <dc:date>2013-01-21T19:58:15Z</dc:date>
    </item>
  </channel>
</rss>

