<?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 qv.exe /R sometimes runs OnPostReload macro, sometimes doesn't? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237936#M88920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks spastor, it works perfectly. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2009 02:38:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-25T02:38:57Z</dc:date>
    <item>
      <title>qv.exe /R sometimes runs OnPostReload macro, sometimes doesn't?</title>
      <link>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237931#M88915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has this issue happened to anyone else? I have a QVW that run a OnPostReload() and when reloaded via qv.exe /R it doesn't always run. When reloaded "manually" it works perfect. Anyone have any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 03:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237931#M88915</guid>
      <dc:creator />
      <dc:date>2009-11-11T03:23:10Z</dc:date>
    </item>
    <item>
      <title>qv.exe /R sometimes runs OnPostReload macro, sometimes doesn't?</title>
      <link>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237932#M88916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so anyone know why this can be happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 12:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237932#M88916</guid>
      <dc:creator />
      <dc:date>2009-11-24T12:22:01Z</dc:date>
    </item>
    <item>
      <title>qv.exe /R sometimes runs OnPostReload macro, sometimes doesn't?</title>
      <link>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237933#M88917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never trust the trigger as I have experienced the same problem. I use one of two methods:&lt;/P&gt;&lt;P&gt;1) After the reload with a /R I then invoke the document again passing a variable with a specific value using the /V switch. I have a macro that runs as the OnOpen trigger and if the variable value is as per the passed value, it runs some code. I wrap these 2 lines in a .bat file.&lt;/P&gt;&lt;P&gt;CALL "C:\PROGRAM FILES\QLIKVIEW\QV.EXE" /R "E:\QVApplications\QVCustomers\CUSTOMER SEGMENTATION.QVW"&lt;BR /&gt;CALL "C:\PROGRAM FILES\QLIKVIEW\QV.EXE" /VvExport=1 "E:\QVApplications\QVCustomers\CUSTOMER SEGMENTATION.QVW"&lt;/P&gt;&lt;P&gt;2) Create an alert that runs On Post Reload in batch mode to send an email if something unusual was detected in the load script (such as a file not found)&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 16:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237933#M88917</guid>
      <dc:creator />
      <dc:date>2009-11-24T16:39:13Z</dc:date>
    </item>
    <item>
      <title>qv.exe /R sometimes runs OnPostReload macro, sometimes doesn't?</title>
      <link>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237934#M88918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;regards solution 1) the macro is like this:&lt;/P&gt;&lt;P&gt;sub ExportData&lt;/P&gt;&lt;P&gt;set doc=ActiveDocument&lt;/P&gt;&lt;P&gt;vExport = doc.Variables("vExport").GetContent.String&lt;BR /&gt;&lt;BR /&gt; if vExport = "1" then&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;doc.GetApplication.Quit&lt;BR /&gt;&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 16:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237934#M88918</guid>
      <dc:creator />
      <dc:date>2009-11-24T16:42:42Z</dc:date>
    </item>
    <item>
      <title>qv.exe /R sometimes runs OnPostReload macro, sometimes doesn't?</title>
      <link>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237935#M88919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I do is assigning the macro to a button (call it BU01 for example).&lt;/P&gt;&lt;P&gt;Then create the following vbs code:&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject("QlikTech.QlikView")&lt;BR /&gt;Set MyDoc = MyApp.OpenDoc ("C:\test\toto.qvw","","")&lt;BR /&gt;Set ActiveDocument = MyDoc&lt;BR /&gt;ActiveDocument.Reload&lt;BR /&gt;ActiveDocument.GetSheetObject("BU01").Press&lt;/P&gt;&lt;P&gt;Set MyDoc = Nothing&lt;BR /&gt;MyApp.Quit&lt;BR /&gt;Set MyApp = Nothing&lt;/P&gt;&lt;P&gt;This will open the document then reload then run the macro.&lt;/P&gt;&lt;P&gt;Then the document is closed.&lt;/P&gt;&lt;P&gt;In Publisher you can then create an external command task.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 16:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237935#M88919</guid>
      <dc:creator />
      <dc:date>2009-11-24T16:58:18Z</dc:date>
    </item>
    <item>
      <title>qv.exe /R sometimes runs OnPostReload macro, sometimes doesn't?</title>
      <link>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237936#M88920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks spastor, it works perfectly. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 02:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237936#M88920</guid>
      <dc:creator />
      <dc:date>2009-11-25T02:38:57Z</dc:date>
    </item>
    <item>
      <title>qv.exe /R sometimes runs OnPostReload macro, sometimes doesn't?</title>
      <link>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237937#M88921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sébastien,&lt;/P&gt;&lt;P&gt;Your code is working great but OpenDoc() is using the QV window that is currently opened. Is there a way to instantiate a new QV window? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 02:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237937#M88921</guid>
      <dc:creator />
      <dc:date>2009-11-26T02:47:41Z</dc:date>
    </item>
    <item>
      <title>qv.exe /R sometimes runs OnPostReload macro, sometimes doesn't?</title>
      <link>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237938#M88922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;problem : can't set macro to allow system access from RELOAD (option /r not work)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN&gt;Ref : &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/18973#18973" style="outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;http://community.qlik.com/message/18973&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN&gt;Ref : &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/21833#21833" style="outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;http://community.qlik.com/message/21833&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN&gt;Ref :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/165717#165717" style="outline-style: none; color: #007fc0;"&gt;http://community.qlik.com/message/165717&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;1.Create Batch file&amp;nbsp; ==&amp;gt; "C:\Program Files\QlikView\qv.exe" /l "path_to_document"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;2.Create Task Scheduler to RUN Batch file (1)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;3.QVW Document ==&amp;gt; Document properties &amp;gt; OnPostReload ==&amp;gt; Add RUN MACRO&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;4.add&amp;nbsp; (end of script)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'courier new', courier;"&gt;ActiveDocument.Save&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; Application.Quit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;don't forget&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1. User Preference &amp;gt;Security &amp;gt; select "Module..." and "File.."&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2. Document Properties &amp;gt; Security &amp;gt; Macro Override Security&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 18:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237938#M88922</guid>
      <dc:creator />
      <dc:date>2012-04-23T18:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: qv.exe /R sometimes runs OnPostReload macro, sometimes doesn't?</title>
      <link>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237939#M88923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this useful summary! Switching from qv.exe /r to /l fixed it for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 07:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qv-exe-R-sometimes-runs-OnPostReload-macro-sometimes-doesn-t/m-p/237939#M88923</guid>
      <dc:creator>tdupasqu</dc:creator>
      <dc:date>2012-08-17T07:41:36Z</dc:date>
    </item>
  </channel>
</rss>

