<?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 SV:Close QlikView from Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210728#M65190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add an OnPostReload trigger calling your quit2 macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6406.onpostreload.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6406.onpostreload.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2011 13:26:30 GMT</pubDate>
    <dc:creator>gandalfgray</dc:creator>
    <dc:date>2011-04-12T13:26:30Z</dc:date>
    <item>
      <title>Close QlikView from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210724#M65186</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;how can i close QlikView from Load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try this.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Macro Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;function quit2()&lt;BR /&gt; Application.Quit&lt;BR /&gt; and&lt;BR /&gt; ActiveDocument.GetApplication.Quit&lt;BR /&gt;end function&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Load Script&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt; let cl = quit2();&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;that does not work&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 09:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210724#M65186</guid>
      <dc:creator />
      <dc:date>2011-04-12T09:24:53Z</dc:date>
    </item>
    <item>
      <title>Close QlikView from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210725#M65187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;function quit2()&lt;BR /&gt; ActiveDocument.GetApplication.Quit&lt;BR /&gt;end function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 10:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210725#M65187</guid>
      <dc:creator />
      <dc:date>2011-04-12T10:59:34Z</dc:date>
    </item>
    <item>
      <title>Close QlikView from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210726#M65188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try Exit Script . I think it may work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 12:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210726#M65188</guid>
      <dc:creator>siva_boggarapu</dc:creator>
      <dc:date>2011-04-12T12:33:00Z</dc:date>
    </item>
    <item>
      <title>SV:Re: Close QlikView from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210727#M65189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Siva wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;try Exit Script . I think it may work&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;B&gt;exit script&lt;/B&gt; in the load script just exits the load script. It does not quit the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 12:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210727#M65189</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-04-12T12:45:20Z</dc:date>
    </item>
    <item>
      <title>SV:Close QlikView from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210728#M65190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add an OnPostReload trigger calling your quit2 macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6406.onpostreload.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6406.onpostreload.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 13:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210728#M65190</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-04-12T13:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: SV:Close QlikView from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210729#M65191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I maybe after the same thing here and it is not looking possible.&amp;nbsp; But what I need is within the script (Not Macro) to reload on a Monday, Tuesday and not Wednesday onwards.&lt;/P&gt;&lt;P&gt;So seuodo =&lt;/P&gt;&lt;P&gt;IF Date(Today(),'WWW') = 'Mon' then&lt;/P&gt;&lt;P&gt;Load blah blah blah&lt;/P&gt;&lt;P&gt;ElseIF &amp;lt;&amp;gt; Mon or Tue for that matter&lt;/P&gt;&lt;P&gt;Close Qlikview but keep data as it was prior to this session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( I see Exit Script, but that removes the old data and I end up with a blank doc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a suggestion not using Publisher or a batch file (Which is what I have had to do using windows Scheduler - which is rubbish)??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help appreciated&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 09:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210729#M65191</guid>
      <dc:creator />
      <dc:date>2013-05-28T09:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: SV:Close QlikView from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210730#M65192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a "Control" .qvw document to manage my multiple and infrequent reloads. You can set the control document to reload every day at the desired time and check the day in an 'if' statement. If the script is true, then force the control document to FAIL by using something like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If (day(today()) = 'Mon') then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load nonexistant field from nonexistant table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EndIf;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the if statement is false, the control document succeeds, but when it is true it fails. You then set up your target document to run on the failure state of the control document. It won't refresh when the control document succeeds. Your admin just need to know that the Control doc will sometimes show a failure state by design.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 10:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210730#M65192</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-05-28T10:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: SV:Close QlikView from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210731#M65193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will work perfectly for me.&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 10:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Close-QlikView-from-Script/m-p/210731#M65193</guid>
      <dc:creator />
      <dc:date>2013-05-28T10:15:08Z</dc:date>
    </item>
  </channel>
</rss>

