<?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 Dynamic update command hangs on refresh in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-update-command-hangs-on-refresh/m-p/890721#M310306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the DynamicUpdateCommand from a macro to update some fields in my report, i set the dynamic update sql as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************************************************&lt;/P&gt;&lt;P&gt;' Update Qlikview Report&lt;/P&gt;&lt;P&gt;'*****************************************************************************************&lt;/P&gt;&lt;P&gt;sql = "UPDATE INPUT_TABLE SET "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;sql = sql &amp;amp; "FIELD1=" &amp;amp; variable1&lt;/P&gt;&lt;P&gt;sql = sql &amp;amp; ", FIELD2='" &amp;amp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;variable2 &lt;/SPAN&gt;&amp;amp; "'"&lt;/P&gt;&lt;P&gt;sql = sql &amp;amp; "&amp;nbsp; WHERE KEY='" &amp;amp; key &amp;amp; "' "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Result = ActiveDocument.DynamicUpdateCommand (sql)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Result = false then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox Result.ErrorMessage&lt;/P&gt;&lt;P&gt;end if &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement seems to work fine, at least on the client where i am executing it i see the value updated correctly in real time in 1 or 2 seconds.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem i am experiencing :&amp;nbsp; if another user has the report open at the moment of the dynamic update, the application tries to update itself to reflect the changes made by the other user but it simply hangs, it hangs so badly that i have to kill the browser (Internet Explorer) and restart everything.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Once i restart the report i actually see those changes made by the other user, so i suppose the qvw got the changes but the clients for some reason could not refresh when the changes actually happened.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have the same problem on all the clients i've tried, so it's not a problem of a particular client.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The Qvwplugin version is the same and the latest on both the clients (the one updating with dynamic commmand and the ones refreshing the data in real time)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have both the options &lt;STRONG&gt;Document Settings-&amp;gt;Server-&amp;gt;Enable dynamic update&lt;/STRONG&gt; checked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and server side &lt;STRONG&gt;System-&amp;gt;Qlik Servers-&amp;gt;Security-&amp;gt;Allow dynamic data update&lt;/STRONG&gt; checked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report has a section access with data reduction enabled, and has some input flields on the same resident table where i have the fields i update with the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;DynamicUpdateCommand. (maybe the dynamic update has some problems with these settings?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Anyone experienced this issue before?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My QV Server Version : 11 SR9&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Claudio &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 14:02:25 GMT</pubDate>
    <dc:creator>claudio1</dc:creator>
    <dc:date>2015-07-06T14:02:25Z</dc:date>
    <item>
      <title>Dynamic update command hangs on refresh</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-update-command-hangs-on-refresh/m-p/890721#M310306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the DynamicUpdateCommand from a macro to update some fields in my report, i set the dynamic update sql as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************************************************&lt;/P&gt;&lt;P&gt;' Update Qlikview Report&lt;/P&gt;&lt;P&gt;'*****************************************************************************************&lt;/P&gt;&lt;P&gt;sql = "UPDATE INPUT_TABLE SET "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;sql = sql &amp;amp; "FIELD1=" &amp;amp; variable1&lt;/P&gt;&lt;P&gt;sql = sql &amp;amp; ", FIELD2='" &amp;amp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;variable2 &lt;/SPAN&gt;&amp;amp; "'"&lt;/P&gt;&lt;P&gt;sql = sql &amp;amp; "&amp;nbsp; WHERE KEY='" &amp;amp; key &amp;amp; "' "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Result = ActiveDocument.DynamicUpdateCommand (sql)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Result = false then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox Result.ErrorMessage&lt;/P&gt;&lt;P&gt;end if &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement seems to work fine, at least on the client where i am executing it i see the value updated correctly in real time in 1 or 2 seconds.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem i am experiencing :&amp;nbsp; if another user has the report open at the moment of the dynamic update, the application tries to update itself to reflect the changes made by the other user but it simply hangs, it hangs so badly that i have to kill the browser (Internet Explorer) and restart everything.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Once i restart the report i actually see those changes made by the other user, so i suppose the qvw got the changes but the clients for some reason could not refresh when the changes actually happened.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have the same problem on all the clients i've tried, so it's not a problem of a particular client.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The Qvwplugin version is the same and the latest on both the clients (the one updating with dynamic commmand and the ones refreshing the data in real time)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have both the options &lt;STRONG&gt;Document Settings-&amp;gt;Server-&amp;gt;Enable dynamic update&lt;/STRONG&gt; checked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and server side &lt;STRONG&gt;System-&amp;gt;Qlik Servers-&amp;gt;Security-&amp;gt;Allow dynamic data update&lt;/STRONG&gt; checked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report has a section access with data reduction enabled, and has some input flields on the same resident table where i have the fields i update with the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;DynamicUpdateCommand. (maybe the dynamic update has some problems with these settings?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Anyone experienced this issue before?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My QV Server Version : 11 SR9&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Claudio &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 14:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-update-command-hangs-on-refresh/m-p/890721#M310306</guid>
      <dc:creator>claudio1</dc:creator>
      <dc:date>2015-07-06T14:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update command hangs on refresh</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-update-command-hangs-on-refresh/m-p/890722#M310307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dynamic Update never was and will never be a multi-user mechanism. All updates for one application should be performed in a coordinated (queued) manner from a central, single point. Alternatively there should be an administrator or super-user that is allowed to do updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use Dynamic Update with extreme caution as it is not a very robust mechanism and it is furthermore considered legacy. Some posts in this forum even suggests that there is no support from Qlik on this feature although it is not mentioned AFAIK in any documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 14:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-update-command-hangs-on-refresh/m-p/890722#M310307</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-06T14:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update command hangs on refresh</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-update-command-hangs-on-refresh/m-p/890723#M310308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks Petter,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I was still hoping i could use the dynamicupdate instead of reloading the report using the API which takes a slightly longer time but it seems to work fine (only one update at time can be made though).&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Reading that the dynamicupdate is such an "experimental" feature i think my only option is to abandon that approach, too bad it was a very cool feature and in other (far simpler) applications i tried i could use it without problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 14:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-update-command-hangs-on-refresh/m-p/890723#M310308</guid>
      <dc:creator>claudio1</dc:creator>
      <dc:date>2015-07-06T14:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update command hangs on refresh</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-update-command-hangs-on-refresh/m-p/890724#M310309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to help, if this concludes the question please mark the question as answered so the thread is closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 15:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-update-command-hangs-on-refresh/m-p/890724#M310309</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-06T15:55:32Z</dc:date>
    </item>
  </channel>
</rss>

