<?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: Reload If Weekday between 8am - 5pm in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954359#M962270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;what i did in this case &lt;/P&gt;&lt;P&gt;i added&amp;nbsp; a qv&amp;nbsp; model that only checks the rule and failed if the rule don't apply&lt;/P&gt;&lt;P&gt;then in the reload schedule i set the target model to load only if the new model succeeded&lt;/P&gt;&lt;P&gt;the only downfall for this is that you'll have in your qmc a model that failed in the weekends and nights&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Oct 2015 04:53:02 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2015-10-24T04:53:02Z</dc:date>
    <item>
      <title>Reload If Weekday between 8am - 5pm</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954357#M962268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this script in my model(s) to test whether its between 8a and 5pm or Sat or Sun and not last day of month else Exit Script:&lt;/P&gt;&lt;P&gt;IF Hour(Now()) &amp;gt; 17 and Hour(Now()) &amp;lt; 7 or DayName(Today()) = 'Sat' or 'Sun' and Day(Today()) &amp;lt;&amp;gt; Day(MonthEnd(Today())) THEN&lt;/P&gt;&lt;P&gt;Exit Script;&lt;/P&gt;&lt;P&gt;END IF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is, the task schedule reloads this model, runs this script and exits.&amp;nbsp; This means my data in the model is all gone as nothing loaded as the script exited?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for the model to only reload as stipulated otherwise nothing. This works well for my models which are simply models to reload my QVD files, but the visual models end up being empty on the Access Point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 20:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954357#M962268</guid>
      <dc:creator />
      <dc:date>2015-10-23T20:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reload If Weekday between 8am - 5pm</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954358#M962269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe if you separate your app in layers, this could help:&lt;/P&gt;&lt;P&gt;1 - Extract layer: Reload condition goes here. Update QVDS only if condition is false, otherwise use the "exit script" sentence and QVDS will remain the same.&lt;/P&gt;&lt;P&gt;2 - UI layer: load from existing QVDS. In this layer its irrelevant if QVDS where updated or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindest regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 21:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954358#M962269</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2015-10-23T21:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reload If Weekday between 8am - 5pm</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954359#M962270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;what i did in this case &lt;/P&gt;&lt;P&gt;i added&amp;nbsp; a qv&amp;nbsp; model that only checks the rule and failed if the rule don't apply&lt;/P&gt;&lt;P&gt;then in the reload schedule i set the target model to load only if the new model succeeded&lt;/P&gt;&lt;P&gt;the only downfall for this is that you'll have in your qmc a model that failed in the weekends and nights&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2015 04:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954359#M962270</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-10-24T04:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reload If Weekday between 8am - 5pm</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954360#M962271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌thanks Santiago&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have my qvd's being updated by one qvw model. Dependent on its successfull running i then reload my visual models one after another. So would i just have a qvw with the above script to test the dsy of week, hour of day and last day of month and if it is fail it on purpose so the the dependent reloads do not happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thing is, i also dont want these visual reloads running unless falls i to the scripted time frames?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2015 06:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954360#M962271</guid>
      <dc:creator />
      <dc:date>2015-10-24T06:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reload If Weekday between 8am - 5pm</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954361#M962272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp; Santiago ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post a sample app . as of my request .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2015 07:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-If-Weekday-between-8am-5pm/m-p/954361#M962272</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2015-10-24T07:20:38Z</dc:date>
    </item>
  </channel>
</rss>

