<?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 Re: DynamicUpdateCommand stops working after QV restart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DynamicUpdateCommand-stops-working-after-QV-restart/m-p/263758#M709740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I worked more on it and I realized that to make DynamicUpdateCommand work again I &lt;STRONG&gt;only need to save the document &lt;/STRONG&gt;(Ctrl+S)... I don't know why!&lt;/P&gt;&lt;P&gt;I'm doing it programmatically on document opening, with this workaround:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Document Properties... &amp;gt; Triggers &amp;gt; Document Event Triggers &amp;gt; OnOpen &amp;gt; Add Action(s)... &amp;gt; Add &amp;gt; External &amp;gt; Run macro &amp;gt; set Macro name = reactivateDynamicUpdateCommand&lt;/LI&gt;&lt;LI&gt;Tools &amp;gt; Edit Module...: add this subroutine:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;sub reactivateDynamicUpdateCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' I know, it's weird&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '... but needed to reactivate DynamicUpdateCommand functionality after a restart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Save&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;It works, even if a better solution would be appreciated. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2011 13:18:45 GMT</pubDate>
    <dc:creator>bluishjoe</dc:creator>
    <dc:date>2011-10-21T13:18:45Z</dc:date>
    <item>
      <title>DynamicUpdateCommand stops working after QV restart</title>
      <link>https://community.qlik.com/t5/QlikView/DynamicUpdateCommand-stops-working-after-QV-restart/m-p/263757#M709739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm using DynamicUpdateCommand inside a macro in this way:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;sub addOrder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set choosen = ActiveDocument.Fields("NUMORD").GetPossibleValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for i = 0 to choosen.Count - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set result = ActiveDocument.DynamicUpdateCommand("UPDATE * SET CHOOSE = 'S' WHERE NUMORD = '" &amp;amp; choosen.Item(i).text &amp;amp; "' " )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if result = false then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox result.ErrorMessage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dinamic Data Update is enabled.&lt;/P&gt;&lt;P&gt;It works, but, when I close QlikView and reopen it, it doesn't work anymore. Reloading doesn't affect it.&lt;/P&gt;&lt;P&gt;I empirically realized that to make it work again I need to change something in the UPDATE, for example turning the '*' into 'MYTABLE'.&lt;/P&gt;&lt;P&gt;I can I solve this weird issue? Maybe is it connected with RAM and way of saving .qvw to the file system?&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 12:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DynamicUpdateCommand-stops-working-after-QV-restart/m-p/263757#M709739</guid>
      <dc:creator>bluishjoe</dc:creator>
      <dc:date>2011-10-20T12:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicUpdateCommand stops working after QV restart</title>
      <link>https://community.qlik.com/t5/QlikView/DynamicUpdateCommand-stops-working-after-QV-restart/m-p/263758#M709740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I worked more on it and I realized that to make DynamicUpdateCommand work again I &lt;STRONG&gt;only need to save the document &lt;/STRONG&gt;(Ctrl+S)... I don't know why!&lt;/P&gt;&lt;P&gt;I'm doing it programmatically on document opening, with this workaround:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Document Properties... &amp;gt; Triggers &amp;gt; Document Event Triggers &amp;gt; OnOpen &amp;gt; Add Action(s)... &amp;gt; Add &amp;gt; External &amp;gt; Run macro &amp;gt; set Macro name = reactivateDynamicUpdateCommand&lt;/LI&gt;&lt;LI&gt;Tools &amp;gt; Edit Module...: add this subroutine:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;sub reactivateDynamicUpdateCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' I know, it's weird&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '... but needed to reactivate DynamicUpdateCommand functionality after a restart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Save&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;It works, even if a better solution would be appreciated. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 13:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DynamicUpdateCommand-stops-working-after-QV-restart/m-p/263758#M709740</guid>
      <dc:creator>bluishjoe</dc:creator>
      <dc:date>2011-10-21T13:18:45Z</dc:date>
    </item>
  </channel>
</rss>

