<?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: Modifying the script dynamically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Modifying-the-script-dynamically/m-p/537339#M1139408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can always use Date() function in a where clause of load scipt in qv. But what you want should be handled using QV Publisher or Windows scheduler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 08:14:32 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-09-25T08:14:32Z</dc:date>
    <item>
      <title>Modifying the script dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Modifying-the-script-dynamically/m-p/537337#M1139406</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;My qlikview report has a query which has a WHERE condition that contains date &amp;amp; time.&lt;/P&gt;&lt;P&gt;I want this report to get reloaded automatically in every 6 hours with fresh date &amp;amp; time parameters ( this date and time parameter will be using OS date &amp;amp; time). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifying-the-script-dynamically/m-p/537337#M1139406</guid>
      <dc:creator />
      <dc:date>2013-09-18T13:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the script dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Modifying-the-script-dynamically/m-p/537338#M1139407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobody knows about it? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 07:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifying-the-script-dynamically/m-p/537338#M1139407</guid>
      <dc:creator />
      <dc:date>2013-09-25T07:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the script dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Modifying-the-script-dynamically/m-p/537339#M1139408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can always use Date() function in a where clause of load scipt in qv. But what you want should be handled using QV Publisher or Windows scheduler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 08:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifying-the-script-dynamically/m-p/537339#M1139408</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-25T08:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the script dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Modifying-the-script-dynamically/m-p/537340#M1139409</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;You have two options;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, load a variable in your script such as;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let xxx = now();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create a timestamp.&amp;nbsp; Then simply take 6 hrs off it - now() - 0.25&amp;nbsp; (0.25 as 6hrs is a quarter of a day).&amp;nbsp; This will provide you with the time 6hrs ago and you need to load anything created after that by using this where clause at the end of your load;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where createdstimestamp &amp;gt; xxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, loads may fail and therefore you miss a 6hr period.&amp;nbsp; I would recommend you load the now variable at the end of your load and save this variable into the qvw.&amp;nbsp; Then your next load can read when the last load completed and load anything after that - even if load(s) fail and more than 6hrs need loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that answer your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how you get on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 08:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifying-the-script-dynamically/m-p/537340#M1139409</guid>
      <dc:creator />
      <dc:date>2013-09-25T08:31:28Z</dc:date>
    </item>
  </channel>
</rss>

