<?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 Batch to run macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Batch-to-run-macros/m-p/237053#M88163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Dear Eliran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please provide me a Sample application of urs to send the reports everyday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be very useful for me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2011 08:43:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-19T08:43:45Z</dc:date>
    <item>
      <title>Batch to run macros</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-to-run-macros/m-p/237051#M88161</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;I have to send a report by mail each day except the weekend on a specific hour.&lt;/P&gt;&lt;P&gt;The report is exported from qlikview by a macro - sending the object to excel and designing it.&lt;/P&gt;&lt;P&gt;As for the mail itself I'm using a cdo object inside a vbs file and running it with cscript.&lt;/P&gt;&lt;P&gt;The model is reloaded everyday at 18:30 and the report needs to be sent after that.&lt;/P&gt;&lt;P&gt;The problem: How can I run the macro by schedule?&lt;/P&gt;&lt;P&gt;I tried a trigger after reload but apparently the trigger is not executed when reloading using a batch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help,&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 10:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-to-run-macros/m-p/237051#M88161</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2011-05-02T10:25:53Z</dc:date>
    </item>
    <item>
      <title>Batch to run macros</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-to-run-macros/m-p/237052#M88162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I did a bit awkward solution..&lt;/P&gt;&lt;P&gt;I created a second model which binary loads the original model.&lt;/P&gt;&lt;P&gt;In this tmp model I created onpostreload trigger which activates the desired macro.&lt;/P&gt;&lt;P&gt;I then created a batch file that reloads the tmp model with /l attribute.&lt;/P&gt;&lt;P&gt;And then a second batch file that uses taskkiller.exe to end the task after few minutes.&lt;/P&gt;&lt;P&gt;All this because the /r attribute is not triggering the onpostreload compared to the /l which does.&lt;/P&gt;&lt;P&gt;If anyone has a more appropriate approach I'll be glad to hear, and if anyone needs any help with the above solution I'll be happy to assist.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 13:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-to-run-macros/m-p/237052#M88162</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2011-05-02T13:29:58Z</dc:date>
    </item>
    <item>
      <title>Batch to run macros</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-to-run-macros/m-p/237053#M88163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Dear Eliran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please provide me a Sample application of urs to send the reports everyday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be very useful for me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 08:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-to-run-macros/m-p/237053#M88163</guid>
      <dc:creator />
      <dc:date>2011-08-19T08:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Batch to run macros</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-to-run-macros/m-p/237054#M88164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well&lt;/P&gt;&lt;P&gt;we use the /l switch running a .qvw in commandline mode (batch).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since /l does not save and close the qvw but triggers OnPostReload&lt;/P&gt;&lt;P&gt;the trick is to make OnPostReload call a macro that finishes with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; ActiveDocument.Save&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Application.Quit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before that you can let the macro send mail or whatever you like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is how we do it.&lt;/P&gt;&lt;P&gt;hth/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 09:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-to-run-macros/m-p/237054#M88164</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-08-19T09:35:06Z</dc:date>
    </item>
  </channel>
</rss>

