<?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 Reload and SaveAs in API in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reload-and-SaveAs-in-API/m-p/168885#M39887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I have written a VBS file which reloads a QlikView document and save it under an other name. But when I start the "SaveAs" command emmediately after the "Reload" command, QlikView crashes (no response, no saveing). It has something to do with the visible sheet. QlikView gives the program sequence back direct after the end of the QlikView script. But at that moment the controls are not updated on the sheet. If I wait for a few seconds after reloading or is the document opened with an empty sheet, no problems occurs. My question is: Is there any status in the document which gives us a hint when the controls are refreshed too?&lt;BR /&gt;&lt;BR /&gt;Here is the VBS:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;BR /&gt;set Qv = CreateObject("QlikTech.QlikView")&lt;BR /&gt;Set qvDoc = Qv.OpenDoc("Test.qvw","Admin","1234")&lt;BR /&gt;qvDoc.Reload&lt;BR /&gt;rem *** should wait a little bit ***&lt;BR /&gt;qvDoc.SaveAs "NetTest.qvw"&lt;BR /&gt;qvDoc.CloseDoc&lt;BR /&gt;Qv.Quit&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2009 22:01:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-27T22:01:26Z</dc:date>
    <item>
      <title>Reload and SaveAs in API</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-and-SaveAs-in-API/m-p/168885#M39887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I have written a VBS file which reloads a QlikView document and save it under an other name. But when I start the "SaveAs" command emmediately after the "Reload" command, QlikView crashes (no response, no saveing). It has something to do with the visible sheet. QlikView gives the program sequence back direct after the end of the QlikView script. But at that moment the controls are not updated on the sheet. If I wait for a few seconds after reloading or is the document opened with an empty sheet, no problems occurs. My question is: Is there any status in the document which gives us a hint when the controls are refreshed too?&lt;BR /&gt;&lt;BR /&gt;Here is the VBS:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;BR /&gt;set Qv = CreateObject("QlikTech.QlikView")&lt;BR /&gt;Set qvDoc = Qv.OpenDoc("Test.qvw","Admin","1234")&lt;BR /&gt;qvDoc.Reload&lt;BR /&gt;rem *** should wait a little bit ***&lt;BR /&gt;qvDoc.SaveAs "NetTest.qvw"&lt;BR /&gt;qvDoc.CloseDoc&lt;BR /&gt;Qv.Quit&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 22:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-and-SaveAs-in-API/m-p/168885#M39887</guid>
      <dc:creator />
      <dc:date>2009-08-27T22:01:26Z</dc:date>
    </item>
    <item>
      <title>AW:Reload and SaveAs in API</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-and-SaveAs-in-API/m-p/168886#M39888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;qvDoc.GetApplication.WaitForIdle&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;there where you have the "rem" now. Perhaps that works...&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 02:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-and-SaveAs-in-API/m-p/168886#M39888</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-08-28T02:32:54Z</dc:date>
    </item>
    <item>
      <title>AW:Reload and SaveAs in API</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-and-SaveAs-in-API/m-p/168887#M39889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joachim&lt;BR /&gt;Thanks for the reply. That is exactly I was looking for!&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 13:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-and-SaveAs-in-API/m-p/168887#M39889</guid>
      <dc:creator />
      <dc:date>2009-08-28T13:31:00Z</dc:date>
    </item>
  </channel>
</rss>

