<?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 OnPostReload not performed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148224#M26548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know the Onpost reload doesn't work in a batch.&lt;/P&gt;&lt;P&gt;What is working is to create a button running the macro.&lt;/P&gt;&lt;P&gt;Then create a quick vbs batch where you'll open the Qlikview document, then reload then push the button to execute your postreload macro function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an exemple of vbs: ( Document name is D:\Qlikview\MyQvwFile.qvw and button name is BU01&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject("QlikTech.QlikView")&lt;BR /&gt;Set MyDoc = MyApp.OpenDoc ("D:\Qlikview\MyQvwFile.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;Hope this help&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2009 22:06:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-01T22:06:31Z</dc:date>
    <item>
      <title>OnPostReload not performed</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148223#M26547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am trying to fire the onpostreload event for a document when the reload is being performed through the command line using the /r switch.&lt;/P&gt;&lt;P&gt;If I do a manual load (clicking the reload icon in Enterprise), the macro associated with the event is executed but through the command line nothing happens. I have specified 'System Access' to the document 'Requested Module Security' and 'Allow System Access' to 'Current Local'. I have also changed the command line to include the /NoSecurity switch.&lt;/P&gt;&lt;P&gt;The attached document gives an example where it tries to write an entry to a log file (creating it if it doesnt exist).&lt;/P&gt;&lt;P&gt;Why does the trigger not fire? Is this a bug in 8.20? What about later versions?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 21:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148223#M26547</guid>
      <dc:creator />
      <dc:date>2009-07-01T21:57:07Z</dc:date>
    </item>
    <item>
      <title>OnPostReload not performed</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148224#M26548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know the Onpost reload doesn't work in a batch.&lt;/P&gt;&lt;P&gt;What is working is to create a button running the macro.&lt;/P&gt;&lt;P&gt;Then create a quick vbs batch where you'll open the Qlikview document, then reload then push the button to execute your postreload macro function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an exemple of vbs: ( Document name is D:\Qlikview\MyQvwFile.qvw and button name is BU01&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject("QlikTech.QlikView")&lt;BR /&gt;Set MyDoc = MyApp.OpenDoc ("D:\Qlikview\MyQvwFile.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;Hope this help&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 22:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148224#M26548</guid>
      <dc:creator />
      <dc:date>2009-07-01T22:06:31Z</dc:date>
    </item>
    <item>
      <title>OnPostReload not performed</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148225#M26549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastien,&lt;/P&gt;&lt;P&gt;I wonder why OnPostReload doesnt fire in batch - is this by design or a bug? I need to send an email with an attached chart when the data is reloaded overnight and this sort of requirement must be very common.&lt;/P&gt;&lt;P&gt;Thanks for the information - that is a great workaround to the problem.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 22:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148225#M26549</guid>
      <dc:creator />
      <dc:date>2009-07-01T22:16:43Z</dc:date>
    </item>
    <item>
      <title>OnPostReload not performed</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148226#M26550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sebastien,&lt;/P&gt;&lt;P&gt;I just tried the vbs code and although I see the script running, the document is not saved nor is the button 'pressed'.&lt;/P&gt;&lt;P&gt;Do you have any idea what the problem is?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 23:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148226#M26550</guid>
      <dc:creator />
      <dc:date>2009-07-01T23:19:28Z</dc:date>
    </item>
    <item>
      <title>OnPostReload not performed</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148227#M26551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using post reload macro with execution from a .bat file using the /l (ell) switch. Nothing as complex as email, just saving spreadsheets out. One thing I've run into is forgetting to include the save and close commands in the post reload macro. The qvw will just sit open.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 23:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148227#M26551</guid>
      <dc:creator />
      <dc:date>2009-07-01T23:55:57Z</dc:date>
    </item>
    <item>
      <title>OnPostReload not performed</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148228#M26552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin,&lt;/P&gt;&lt;P&gt;So you reload the document through a .bat and a macro is defined for the OnPostReload document event trigger runs?&lt;/P&gt;&lt;P&gt;What version are you running - I thought we had 'proved' that OnPostReload doesnt fire for a batch reload?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 17:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148228#M26552</guid>
      <dc:creator />
      <dc:date>2009-07-02T17:51:14Z</dc:date>
    </item>
    <item>
      <title>OnPostReload not performed</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148229#M26553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gordon, sorry for the delay.&lt;/P&gt;&lt;P&gt;Re the macro, did you try to run it step by step ( cscript //X.exe xxx.vbs ?)&lt;/P&gt;&lt;P&gt;Then you can see where it is hanging... Maybe QV is asking you to confirm security macro ?&lt;/P&gt;&lt;P&gt;Running the onpostreload macro didn't work when I launched QV.exe /r flag. Maybe using the /l flag is working ? to be tested, but the /l flag will not save your document after reloading neither closing it ( accordingly to the guide).&lt;/P&gt;&lt;P&gt;Hope this helped you.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 20:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148229#M26553</guid>
      <dc:creator />
      <dc:date>2009-07-15T20:43:37Z</dc:date>
    </item>
    <item>
      <title>OnPostReload not performed</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148230#M26554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I'm tring to execute a export to pdf whit macro using "ActiveDocument.GetSheetObject("BU01").Press"&lt;/P&gt;&lt;P&gt;It work if remove MyApp.Quit from vbs script&lt;/P&gt;&lt;P&gt;if I put MyApp.Quit qv.exe task close before the complete macro execution started by "BU01"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using QLIK VIEW 9 SR3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject("QlikTech.QlikView")&lt;BR /&gt;Set MyDoc = MyApp.OpenDoc ("D:\Qlikview\MyQvwFile.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;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 15:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-not-performed/m-p/148230#M26554</guid>
      <dc:creator />
      <dc:date>2010-03-15T15:04:43Z</dc:date>
    </item>
  </channel>
</rss>

