<?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. :Re: Re. :Re: EXECUTING SCRIPT IN QLIKVIEW in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241527#M91941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put this macro in the &lt;STRONG&gt;script&lt;/STRONG&gt; using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sub ReloadQVW&lt;BR /&gt; Set docObj = ActiveDocument.GetApplication.OpenDocEx ("C:\Documents\myapplication.qvw",0)&lt;BR /&gt; docObj.Reload&lt;BR /&gt; docObj.Save&lt;BR /&gt; docObj.CloseDoc&lt;BR /&gt;End Sub&lt;BR /&gt;Call ReloadQVW&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Oct 2010 15:22:38 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2010-10-20T15:22:38Z</dc:date>
    <item>
      <title>EXECUTING SCRIPT IN QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241519#M91933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to run the script from another document Qlikview without opening the document in question?&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 18:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241519#M91933</guid>
      <dc:creator />
      <dc:date>2010-10-19T18:44:30Z</dc:date>
    </item>
    <item>
      <title>EXECUTING SCRIPT IN QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241520#M91934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do this with a macro. You can reference the 2nd QVW and use the Reload routine to run it's script. Alternatively, you can do it via bat using the /r switch, which open the documents, reloads it and then closes it. The macro method doesn't require the document to be opened at all, I believe.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 19:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241520#M91934</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-10-19T19:07:50Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: EXECUTING SCRIPT IN QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241521#M91935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please could you give me an example Sir VLAD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 19:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241521#M91935</guid>
      <dc:creator />
      <dc:date>2010-10-19T19:38:08Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: EXECUTING SCRIPT IN QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241522#M91936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please an example using Macro Technic???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 19:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241522#M91936</guid>
      <dc:creator />
      <dc:date>2010-10-19T19:39:15Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: EXECUTING SCRIPT IN QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241523#M91937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haha "Sir Vlad," I like that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Sure, here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sub ReloadQVW&lt;BR /&gt;Set docObj = ActiveDocument.GetApplication.OpenDocEx ("C:\Documents\myapplication.qvw",0) 'Open the document&lt;BR /&gt;docObj.Reload 'Reload the document&lt;BR /&gt;docObj.Save 'Save the document&lt;BR /&gt;docObj.CloseDoc 'Close the document&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I was mistaken before--this does open the document first. See the API Guide for more details. So in answer to your original question, I can think of only 1 way to reload a document without opening it. That is by using Publisher. You can also access the Publisher executable and reload via the script. See the QVS Reference Manual, page 241, for more details.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 20:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241523#M91937</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-10-19T20:05:31Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: EXECUTING SCRIPT IN QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241524#M91938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sir VLAD,&lt;/P&gt;&lt;P&gt;I'm very tired, i will try to execute this ROUTINE tomorow.&lt;/P&gt;&lt;P&gt;And i will make account.&lt;/P&gt;&lt;P&gt;Good Bye Sir VLAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 20:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241524#M91938</guid>
      <dc:creator />
      <dc:date>2010-10-19T20:19:27Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: EXECUTING SCRIPT IN QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241525#M91939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;Please How is the macro is called in my Qlikview script ?&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 10:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241525#M91939</guid>
      <dc:creator />
      <dc:date>2010-10-20T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: EXECUTING SCRIPT IN QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241526#M91940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can set the macros on the triggers...&lt;/P&gt;&lt;P&gt;Document Properties / Triggers and choose on "Document Event Triggers"&lt;/P&gt;&lt;P&gt;- OnOpen: Select this event to assign an action to be executed each time the QlikView document is opened.&lt;/P&gt;&lt;P&gt;- OnPostReload: Select this event to assign an action to be executed each time the script has been re-executed.&lt;/P&gt;&lt;P&gt;Click on Add Action: Add / External / Run Macro and put the name of your macro in the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 12:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241526#M91940</guid>
      <dc:creator />
      <dc:date>2010-10-20T12:19:46Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: EXECUTING SCRIPT IN QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241527#M91941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put this macro in the &lt;STRONG&gt;script&lt;/STRONG&gt; using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sub ReloadQVW&lt;BR /&gt; Set docObj = ActiveDocument.GetApplication.OpenDocEx ("C:\Documents\myapplication.qvw",0)&lt;BR /&gt; docObj.Reload&lt;BR /&gt; docObj.Save&lt;BR /&gt; docObj.CloseDoc&lt;BR /&gt;End Sub&lt;BR /&gt;Call ReloadQVW&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 15:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTING-SCRIPT-IN-QLIKVIEW/m-p/241527#M91941</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-10-20T15:22:38Z</dc:date>
    </item>
  </channel>
</rss>

