<?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: Only load scipt if field update = today in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-load-scipt-if-field-update-today/m-p/824924#M1044931</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;Add a variable to capture the latest update date and load this ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Dat,&lt;/P&gt;&lt;P&gt;Info;&lt;/P&gt;&lt;P&gt;SQL Select *&lt;/P&gt;&lt;P&gt;From DB...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Max(Date(Dat)) as MaxDat&lt;/P&gt;&lt;P&gt;Resident Tmp where Info = 'OK';&lt;/P&gt;&lt;P&gt;Drop table Tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMax = peek('MaxDat',0,'Tmp2');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If vMax = Date(Today())&amp;nbsp; then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD....&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;Exit script;&lt;/P&gt;&lt;P&gt;EndIf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 14:32:41 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-11-26T14:32:41Z</dc:date>
    <item>
      <title>Only load scipt if field update = today</title>
      <link>https://community.qlik.com/t5/QlikView/Only-load-scipt-if-field-update-today/m-p/824922#M1044929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How can i write the script so that it only continue to load if the field UpDate in the database is the same as Date(Toay())?&lt;/P&gt;&lt;P&gt;I have tested this but don´t get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; Dat,&lt;/P&gt;&lt;P&gt; Info;&lt;/P&gt;&lt;P&gt;SQL Select *&lt;/P&gt;&lt;P&gt;From DB...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Max(Date(Dat)) as MaxDat&lt;/P&gt;&lt;P&gt;Resident Tmp where Info = 'OK';&lt;/P&gt;&lt;P&gt;Drop table Tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Date(MaxDat) = Date(Today()) then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;Exit script;&lt;/P&gt;&lt;P&gt;EndIf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-load-scipt-if-field-update-today/m-p/824922#M1044929</guid>
      <dc:creator />
      <dc:date>2014-11-26T13:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Only load scipt if field update = today</title>
      <link>https://community.qlik.com/t5/QlikView/Only-load-scipt-if-field-update-today/m-p/824923#M1044930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Tmp:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL Select max(Dat) as MaxDat&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From DB...&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Info = 'OK';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vMax = num(peek('MaxDat'));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF $(vMax) = num(today()) THEN&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do stuff&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ELSE&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit script;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ENDIF;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-load-scipt-if-field-update-today/m-p/824923#M1044930</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-26T14:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Only load scipt if field update = today</title>
      <link>https://community.qlik.com/t5/QlikView/Only-load-scipt-if-field-update-today/m-p/824924#M1044931</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;Add a variable to capture the latest update date and load this ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Dat,&lt;/P&gt;&lt;P&gt;Info;&lt;/P&gt;&lt;P&gt;SQL Select *&lt;/P&gt;&lt;P&gt;From DB...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Max(Date(Dat)) as MaxDat&lt;/P&gt;&lt;P&gt;Resident Tmp where Info = 'OK';&lt;/P&gt;&lt;P&gt;Drop table Tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMax = peek('MaxDat',0,'Tmp2');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If vMax = Date(Today())&amp;nbsp; then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD....&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;Exit script;&lt;/P&gt;&lt;P&gt;EndIf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-load-scipt-if-field-update-today/m-p/824924#M1044931</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-26T14:32:41Z</dc:date>
    </item>
  </channel>
</rss>

