<?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 refresh doc through macro after calling batch file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/refresh-doc-through-macro-after-calling-batch-file/m-p/389747#M1272934</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;&lt;/P&gt;&lt;P&gt;I am calling a batch file to reload the document from macro.&lt;/P&gt;&lt;P&gt;After it is reloaded successfully, &lt;/P&gt;&lt;P&gt;I want a dialogue box to be displayed saying "Reload Finished" and also execute&amp;nbsp; ActiveDocument.SetClearState&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;Sub External&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WSHShell = CreateObject("Wscript.Shell")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exitcode=WSHShell.Run("D:\testserver.bat",0,TRUE)---line x //this reloads the doc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(exitcode=0) then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHShell.Popup "Reload Finished"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.SetClearState&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;end if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, it is timing out, I think at line x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I give only &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;WSHShell.Run("D:\testserver.bat")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;ActiveDocument.SetClearState----this doesn't get executed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hence I am not able to see the reloaded data .I have to refresh the doc manually.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;How can I solve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&lt;SPAN style="color: #000000;"&gt;-Anju&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>refresh doc through macro after calling batch file</title>
      <link>https://community.qlik.com/t5/QlikView/refresh-doc-through-macro-after-calling-batch-file/m-p/389747#M1272934</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;&lt;/P&gt;&lt;P&gt;I am calling a batch file to reload the document from macro.&lt;/P&gt;&lt;P&gt;After it is reloaded successfully, &lt;/P&gt;&lt;P&gt;I want a dialogue box to be displayed saying "Reload Finished" and also execute&amp;nbsp; ActiveDocument.SetClearState&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;Sub External&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WSHShell = CreateObject("Wscript.Shell")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exitcode=WSHShell.Run("D:\testserver.bat",0,TRUE)---line x //this reloads the doc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(exitcode=0) then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHShell.Popup "Reload Finished"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.SetClearState&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;end if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, it is timing out, I think at line x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I give only &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;WSHShell.Run("D:\testserver.bat")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;ActiveDocument.SetClearState----this doesn't get executed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hence I am not able to see the reloaded data .I have to refresh the doc manually.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;How can I solve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&lt;SPAN style="color: #000000;"&gt;-Anju&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/refresh-doc-through-macro-after-calling-batch-file/m-p/389747#M1272934</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: refresh doc through macro after calling batch file</title>
      <link>https://community.qlik.com/t5/QlikView/refresh-doc-through-macro-after-calling-batch-file/m-p/389748#M1272936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is in the Batch file?&lt;/P&gt;&lt;P&gt; If you add the Path on the system variables&amp;nbsp; you can run a batch file with the line &lt;/P&gt;&lt;P&gt;'qv &amp;lt;file location&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&amp;nbsp; /r'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 12:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/refresh-doc-through-macro-after-calling-batch-file/m-p/389748#M1272936</guid>
      <dc:creator>arthur_dom</dc:creator>
      <dc:date>2013-01-03T12:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: refresh doc through macro after calling batch file</title>
      <link>https://community.qlik.com/t5/QlikView/refresh-doc-through-macro-after-calling-batch-file/m-p/389749#M1272938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The content of the batch file is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\QlikView\Publisher\Distribution Service\QlikviewDistributionService.exe" -r="C:\QlikViewMount\RN60-ConsolidatedCostofProgrammingReport.qvw"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 12:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/refresh-doc-through-macro-after-calling-batch-file/m-p/389749#M1272938</guid>
      <dc:creator />
      <dc:date>2013-01-03T12:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: refresh doc through macro after calling batch file</title>
      <link>https://community.qlik.com/t5/QlikView/refresh-doc-through-macro-after-calling-batch-file/m-p/389750#M1272940</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;&lt;/P&gt;&lt;P&gt;This issue is fixed!.&lt;/P&gt;&lt;P&gt;Please see this thread!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/293671#293671" title="http://community.qlik.com/message/293671#293671"&gt;http://community.qlik.com/message/293671#293671&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 07:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/refresh-doc-through-macro-after-calling-batch-file/m-p/389750#M1272940</guid>
      <dc:creator />
      <dc:date>2013-01-24T07:29:28Z</dc:date>
    </item>
  </channel>
</rss>

