<?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 QlikView Macro in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QlikView-Macro/m-p/2008365#M83412</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a macro imbedded in a QlikView dashboard, which I have set a trigger task to run on reload. This works when reloading it manually, but doesn't work when scheduled on QMC. I have also tried running this macro on NPrinting v16, as a run macro task and reload task, but again it runs when I execute manually but doesn't run on the schedule.&lt;/P&gt;
&lt;P&gt;The macro is below -&lt;/P&gt;
&lt;P&gt;---------------------------------------------&lt;/P&gt;
&lt;P&gt;sub ExportReport&lt;/P&gt;
&lt;P&gt;v = ActiveDocument.Evaluate("=timestamp(today(),'YYYYMMDD')")&lt;/P&gt;
&lt;P&gt;ActiveDocument.Variables("vDate").SetContent v, true&lt;/P&gt;
&lt;P&gt;set obj = ActiveDocument.GetSheetObject("CH03")&lt;BR /&gt;obj.exportex ActiveDocument.Variables("vQVDCommon").GetContent.String &amp;amp;"\PricingProduction_"&amp;amp; ActiveDocument.Variables("vDate").GetContent.String &amp;amp;".qvd",4&lt;/P&gt;
&lt;P&gt;end sub&lt;/P&gt;
&lt;P&gt;---------------------------------------------&lt;/P&gt;
&lt;P&gt;I have read that macros don't run on QMC and need a batch file to open the dashboard and reload. This is something I have never done before and wouldn't know where to start. Please can you help to automate this process.&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 16:40:17 GMT</pubDate>
    <dc:creator>John_Shep86</dc:creator>
    <dc:date>2022-11-23T16:40:17Z</dc:date>
    <item>
      <title>QlikView Macro</title>
      <link>https://community.qlik.com/t5/App-Development/QlikView-Macro/m-p/2008365#M83412</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a macro imbedded in a QlikView dashboard, which I have set a trigger task to run on reload. This works when reloading it manually, but doesn't work when scheduled on QMC. I have also tried running this macro on NPrinting v16, as a run macro task and reload task, but again it runs when I execute manually but doesn't run on the schedule.&lt;/P&gt;
&lt;P&gt;The macro is below -&lt;/P&gt;
&lt;P&gt;---------------------------------------------&lt;/P&gt;
&lt;P&gt;sub ExportReport&lt;/P&gt;
&lt;P&gt;v = ActiveDocument.Evaluate("=timestamp(today(),'YYYYMMDD')")&lt;/P&gt;
&lt;P&gt;ActiveDocument.Variables("vDate").SetContent v, true&lt;/P&gt;
&lt;P&gt;set obj = ActiveDocument.GetSheetObject("CH03")&lt;BR /&gt;obj.exportex ActiveDocument.Variables("vQVDCommon").GetContent.String &amp;amp;"\PricingProduction_"&amp;amp; ActiveDocument.Variables("vDate").GetContent.String &amp;amp;".qvd",4&lt;/P&gt;
&lt;P&gt;end sub&lt;/P&gt;
&lt;P&gt;---------------------------------------------&lt;/P&gt;
&lt;P&gt;I have read that macros don't run on QMC and need a batch file to open the dashboard and reload. This is something I have never done before and wouldn't know where to start. Please can you help to automate this process.&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 16:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikView-Macro/m-p/2008365#M83412</guid>
      <dc:creator>John_Shep86</dc:creator>
      <dc:date>2022-11-23T16:40:17Z</dc:date>
    </item>
  </channel>
</rss>

