<?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 How to  close qlikview document in edit script ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467204#M1159018</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 need to close the qlikview document when some condition exists.&lt;/P&gt;&lt;P&gt;I tried to write a macro just like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and called it in the edit script but it didn' t worked.&lt;/P&gt;&lt;P&gt;Is there any way to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2012 07:49:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-27T07:49:20Z</dc:date>
    <item>
      <title>How to  close qlikview document in edit script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467204#M1159018</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 need to close the qlikview document when some condition exists.&lt;/P&gt;&lt;P&gt;I tried to write a macro just like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and called it in the edit script but it didn' t worked.&lt;/P&gt;&lt;P&gt;Is there any way to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 07:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467204#M1159018</guid>
      <dc:creator />
      <dc:date>2012-12-27T07:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to  close qlikview document in edit script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467205#M1159019</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;&lt;STRONG&gt;Open and&amp;nbsp; Close the active document&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Appli=ActiveDocument.GetApplication&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set NewDoc= App.OpenDoc("C:\MyApplication.qvw","","")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Active&lt;/P&gt;&lt;P&gt;//Close the document&lt;/P&gt;&lt;P&gt;NewDoc.CloseDoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps U.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Kabilan K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 08:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467205#M1159019</guid>
      <dc:creator />
      <dc:date>2012-12-27T08:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to  close qlikview document in edit script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467206#M1159020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;but still not working,&lt;/P&gt;&lt;P&gt;My code is as following ,&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------- &lt;/P&gt;&lt;P&gt;LOAD A, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\tst.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//this must be closed&lt;/P&gt;&lt;P&gt;let mTst = fClose(a);&lt;/P&gt;&lt;P&gt;//but still works..&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my script is as :&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;function fClose(a)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set Appli=ActiveDocument.GetApplication&lt;/P&gt;&lt;P&gt;Set NewDoc= App.OpenDoc("C:\TTest.qvw","","")&lt;/P&gt;&lt;P&gt;ActiveDocument.Active&lt;/P&gt;&lt;P&gt;'Close the document&lt;/P&gt;&lt;P&gt;NewDoc.CloseDoc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Maybe I have some sysntax error,&lt;/P&gt;&lt;P&gt;Any Idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 09:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467206#M1159020</guid>
      <dc:creator />
      <dc:date>2012-12-27T09:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to  close qlikview document in edit script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467207#M1159021</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;I've attached a workaround.&lt;/P&gt;&lt;P&gt;Hope it may be helpful in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in this document the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(v)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;EXIT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Script&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;ENDIF&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//rest of the code&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt;"&gt;'2'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro sub:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sub Close()&lt;BR /&gt;&lt;BR /&gt;vMacro = ActiveDocument.Variables("v").GetContent.String&lt;BR /&gt;&lt;BR /&gt;if vMacro = 1 then&lt;BR /&gt;ActiveDocument.GetApplication.Quit&lt;BR /&gt;end if&lt;BR /&gt;&lt;BR /&gt;end sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the trigger in Settings &amp;gt; Document Properties &amp;gt; Triggers.&lt;/P&gt;&lt;P&gt;OnPostReload &amp;gt; External &amp;gt; Run Macro &amp;gt; Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 09:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467207#M1159021</guid>
      <dc:creator />
      <dc:date>2012-12-28T09:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to  close qlikview document in edit script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467208#M1159022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, in the end it works!&lt;/P&gt;&lt;P&gt;Thanks &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/jp_bakhache" id="jive-6136710068815452261315"&gt;jp_bakhache&lt;/A&gt;&amp;nbsp; , that is what I need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 10:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467208#M1159022</guid>
      <dc:creator />
      <dc:date>2012-12-28T10:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to  close qlikview document in edit script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467209#M1159023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; sorry for jumping in on this thread.&amp;nbsp; Im jumping from one document to another using the Open Qlikview Document action..&amp;nbsp;&amp;nbsp; Is there any way of closing the document I have jumped from after the second document has opened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 13:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-close-qlikview-document-in-edit-script/m-p/467209#M1159023</guid>
      <dc:creator />
      <dc:date>2015-03-23T13:45:08Z</dc:date>
    </item>
  </channel>
</rss>

