<?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 Script only load if new data in last 5 minutes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1781701#M1209527</link>
    <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;simple question i hope!&lt;/P&gt;&lt;P&gt;im looking to put in a statement at the beginning of a qlikview script where it will look at my SQL date/timecolumn and if there is a time/date recorded that is within the last 5 minutes&amp;nbsp; then it will load all, if not it will fail the script.&lt;/P&gt;&lt;P&gt;i know i could put in a simple where clauses but i need it to fail if there is no date/time recorded in the last 5 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 15:40:28 GMT</pubDate>
    <dc:creator>BSCIknowlec</dc:creator>
    <dc:date>2021-02-10T15:40:28Z</dc:date>
    <item>
      <title>Script only load if new data in last 5 minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1781701#M1209527</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;simple question i hope!&lt;/P&gt;&lt;P&gt;im looking to put in a statement at the beginning of a qlikview script where it will look at my SQL date/timecolumn and if there is a time/date recorded that is within the last 5 minutes&amp;nbsp; then it will load all, if not it will fail the script.&lt;/P&gt;&lt;P&gt;i know i could put in a simple where clauses but i need it to fail if there is no date/time recorded in the last 5 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 15:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1781701#M1209527</guid>
      <dc:creator>BSCIknowlec</dc:creator>
      <dc:date>2021-02-10T15:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script only load if new data in last 5 minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1781828#M1209548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114926"&gt;@BSCIknowlec&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;table:&lt;BR /&gt;LOAD * from yourtable where condition;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET a = NoOfRows('table');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if $(a)=0 then &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;EXIT SCRIPT;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ENDIF;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If the no.of rows in ur table is zero , then it will end the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 04:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1781828#M1209548</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-02-11T04:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script only load if new data in last 5 minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1781835#M1209553</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This allows the majority of page content (like images, tables, text) to be loaded and rendered first. The user sees content loading, so the page looks responsive. At this point, the heavy javascripts can begin loading near the end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;A href="https://www.upsers.online/" target="_self"&gt;&lt;SPAN&gt;upsers&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 05:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1781835#M1209553</guid>
      <dc:creator>Stephenns</dc:creator>
      <dc:date>2021-02-12T05:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script only load if new data in last 5 minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1781892#M1209562</link>
      <description>&lt;P&gt;Hi Mayril, thanks for your suggestion. however i need the script to actually fail and not just end the run, as in my qmc i will have my much larger app only run if this smaller app is successful, and if i just put an exit script it would always be successful.&amp;nbsp; my current code is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;test:&lt;/P&gt;&lt;P&gt;load *;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if &lt;STRONG&gt;alt( NoOfRows('Update_Time,'), 0)&amp;nbsp; &amp;lt; 1&amp;nbsp; then&amp;nbsp;&amp;nbsp;&amp;nbsp;asdfkjsdflkks(any wrong command);&amp;nbsp;end if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL Select ID, Update_Time, detail .... from...&amp;nbsp; where Update_Time &amp;gt;= dateadd(minute, datediff(minute, 0, getdate()) -5, 0) &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;order by Update_Time desc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;however when i run it always fails? i need it to pass if my update time table(or any table) has data in it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 08:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1781892#M1209562</guid>
      <dc:creator>BSCIknowlec</dc:creator>
      <dc:date>2021-02-11T08:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script only load if new data in last 5 minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1883307#M1216935</link>
      <description>&lt;P&gt;This allows most of the page content (e.g. images, spreadsheets, text) to be downloaded and displayed first. The user sees the content being uploaded to make the page look relevant. At this point, heavy javascript may start loading at the end.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://krnl.onl" target="_self"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;Krnl Download&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://krnl.live/" target="_self"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;Krnl Roblox&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://krnl.ltd/" target="_self"&gt;&lt;FONT size="2" color="#FFFFFF"&gt;Krnl&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 11:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1883307#M1216935</guid>
      <dc:creator>johnreena</dc:creator>
      <dc:date>2022-01-20T11:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script only load if new data in last 5 minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1883332#M1216937</link>
      <description>&lt;P&gt;Instead of &lt;STRONG&gt;exit script;&lt;/STRONG&gt;&amp;nbsp;within the if-loop you could simply write: no current data available and now the script failed ... Any invalid statement will do the job.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 12:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-only-load-if-new-data-in-last-5-minutes/m-p/1883332#M1216937</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-01-20T12:23:37Z</dc:date>
    </item>
  </channel>
</rss>

