<?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 WaitForIdle in OnPostReload - QV hangs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216680#M69979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to separate the macros, so you still have the WaitForIdle working when switching sheets, but not on the post reload?&lt;/P&gt;&lt;P&gt;Also, would be interested to know how you are logging this, as this is something I need to get my head around pretty quickly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2010 18:26:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-19T18:26:00Z</dc:date>
    <item>
      <title>WaitForIdle in OnPostReload - QV hangs</title>
      <link>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216675#M69974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is there any problem when using WaitForIdle in a macro which is triggered by OnPostReload (QV 8.5) ?&lt;/P&gt;&lt;P&gt;On Commandline (cmd.exe) I run a batch which calls "qv.exe /r /NoSecurity myfile.qvw"&lt;/P&gt;&lt;P&gt;I have defined a macro which shall run OnPostReload.&lt;BR /&gt;At the very beginning of that macro (it is literally the very first line after my logging code) I do WaitForIdle 5000 ... just to be sure that all effects of the reload are well processed.&lt;/P&gt;&lt;P&gt;Running the batch, the macro hangs at that line (I know that for sure due to 'Before ... After WaitForIdle logging code).&lt;BR /&gt;I can run the macro without problems from within the QV Window.&lt;BR /&gt;But during the batch, QV hangs at that line.&lt;/P&gt;&lt;P&gt;Any idea?&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 17:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216675#M69974</guid>
      <dc:creator />
      <dc:date>2010-01-19T17:06:59Z</dc:date>
    </item>
    <item>
      <title>WaitForIdle in OnPostReload - QV hangs</title>
      <link>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216676#M69975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;WaitForIdle, when run from the command line, will simply stop the macro working and it will hang, every time!!&lt;/P&gt;&lt;P&gt;You should remove the WaitForIdle from the macro, maybe move it to a macro that is called only when a sheet object, or sheet itself is activated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 17:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216676#M69975</guid>
      <dc:creator />
      <dc:date>2010-01-19T17:13:31Z</dc:date>
    </item>
    <item>
      <title>WaitForIdle in OnPostReload - QV hangs</title>
      <link>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216677#M69976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nigel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Nigel West wrote:WaitForIdle, when run from the command line, will simply stop the macro working and it will hang, every time!!&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I think I cannot agree. Meanwhile I did some further tests - letting run the commandline with the same (unchanged) qvw over and over again.&lt;BR /&gt;SOMETIMES it hangs in WaitForIdle, but sometimes it does not.&lt;/P&gt;&lt;P&gt;But still, why do you think the macro MUST stop?&lt;BR /&gt;I don't have any background on how WaitForIdle works ...&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 17:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216677#M69976</guid>
      <dc:creator />
      <dc:date>2010-01-19T17:36:25Z</dc:date>
    </item>
    <item>
      <title>WaitForIdle in OnPostReload - QV hangs</title>
      <link>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216678#M69977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;SOMETIMES it hangs in WaitForIdle, but sometimes it does not.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;OK, so now you know more than me! My experience was that it hung every time I tried it, but maybe you have this macro activated in a different way somehow, the thing with this is that I lost the will to try to find out more, I simply removed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 17:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216678#M69977</guid>
      <dc:creator />
      <dc:date>2010-01-19T17:41:44Z</dc:date>
    </item>
    <item>
      <title>WaitForIdle in OnPostReload - QV hangs</title>
      <link>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216679#M69978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nigel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Nigel West wrote:the thing with this is that I lost the will to try to find out more, I simply removed it&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;[:'(] I wish I could ...&lt;/P&gt;&lt;P&gt;Unfortunately WaitForIdle is a problem solver for another topic in that macro.&lt;BR /&gt;I experienced troubles in the 'current-ness' of the data when switching sheets, and WaitForIdle solved that.&lt;/P&gt;&lt;P&gt;Damn, it looks as if I am cornered by conflicting workarounds ...&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 18:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216679#M69978</guid>
      <dc:creator />
      <dc:date>2010-01-19T18:00:18Z</dc:date>
    </item>
    <item>
      <title>WaitForIdle in OnPostReload - QV hangs</title>
      <link>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216680#M69979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to separate the macros, so you still have the WaitForIdle working when switching sheets, but not on the post reload?&lt;/P&gt;&lt;P&gt;Also, would be interested to know how you are logging this, as this is something I need to get my head around pretty quickly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 18:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216680#M69979</guid>
      <dc:creator />
      <dc:date>2010-01-19T18:26:00Z</dc:date>
    </item>
    <item>
      <title>WaitForIdle in OnPostReload - QV hangs</title>
      <link>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216681#M69980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nigel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Nigel West wrote:Also, would be interested to know how you are logging&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I simply use the FileSystemObject to create a log file.&lt;BR /&gt;The basics for the routine I found in this forum (while searching for OnPostReload topics).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;' -------------------------------------------------------------------&lt;BR /&gt;' LogMessage&lt;BR /&gt;' -------------------------------------------------------------------&lt;BR /&gt;sub LogMsg(byval sMsg)&lt;BR /&gt;dim fso&lt;BR /&gt;dim logFile, sFile, txsStream&lt;BR /&gt; if DO_LOG = 0 then exit sub&lt;BR /&gt;&lt;BR /&gt; set fso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt; sFile = LOGDIRECTORY &amp;amp; "\" &amp;amp;MYLOGFILE&lt;BR /&gt;&lt;BR /&gt; on error resume next&lt;BR /&gt; set logFile = fso.GetFile(sFile)&lt;BR /&gt; if err &amp;lt;&amp;gt; 0 then ' file does not exist&lt;BR /&gt; on error goto 0&lt;BR /&gt; set logFile = fso.CreateTextFile(sFile)&lt;BR /&gt; else&lt;BR /&gt; on error goto 0&lt;BR /&gt; end if&lt;BR /&gt; set txsStream = logFile.OpenAsTextStream(8) ' append&lt;BR /&gt; txsStream.WriteLine Now &amp;amp; ": " &amp;amp; sMsg&lt;BR /&gt; txsStream.Close&lt;BR /&gt;&lt;BR /&gt; set txsStream = nothing&lt;BR /&gt; set logFile = nothing&lt;BR /&gt; set fso = nothing&lt;BR /&gt;end sub&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;DO_LOG is a global const which I use to quickly enable/disable logging.&lt;BR /&gt;LOGDIRECTORY and MYLOGFILE are global const to define log location and name.&lt;/P&gt;&lt;P&gt;I use this function very frequently in my code.&lt;BR /&gt;With the DO_LOG switch I can easily disable the logging in a customer/ productive environment.&lt;/P&gt;&lt;P&gt;hth,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 12:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WaitForIdle-in-OnPostReload-QV-hangs/m-p/216681#M69980</guid>
      <dc:creator />
      <dc:date>2010-01-20T12:55:01Z</dc:date>
    </item>
  </channel>
</rss>

