<?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 Please help with DynamicUpdateCommand in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Please-help-with-DynamicUpdateCommand/m-p/153061#M30253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please HELP ME with macro.&lt;/P&gt;&lt;P&gt;I'm testig DynamicUpdateCommand&lt;BR /&gt;for a Budget application.&lt;/P&gt;&lt;P&gt;I would like to update some fild applying personalized functions.&lt;/P&gt;&lt;P&gt;This is my first test, but it return me a Blank msg box&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;sub enrico&lt;BR /&gt;&lt;BR /&gt;set docprop = ActiveDocument.GetProperties&lt;BR /&gt;docprop.EnableDynamicDataUpdate=true&lt;BR /&gt;ActiveDocument.SetProperties docprop&lt;BR /&gt;&lt;BR /&gt;SET Result = ActiveDocument.DynamicUpdateCommand("UPDATE Products SET Prezzo=0")&lt;BR /&gt;if Result = false then&lt;BR /&gt;MsgBox Result.ErrorMessage&lt;BR /&gt;else&lt;BR /&gt;MsgBox("FATTO")&lt;BR /&gt;end if&lt;BR /&gt;ActiveDocument.Save&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;------------------------------&lt;/P&gt;&lt;P&gt;The load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inputfield Prezzo;&lt;BR /&gt;Inputfield Quantita;&lt;BR /&gt;&lt;BR /&gt;products:&lt;BR /&gt;LOAD Prodotto,&lt;BR /&gt; Prezzo,&lt;BR /&gt; Quantita&lt;BR /&gt;FROM&lt;BR /&gt;sorgente_test_frutta.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Foglio1);&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;Where is the error ?&lt;/P&gt;&lt;P&gt;What is the best way for top-&amp;gt;bottom&lt;BR /&gt;or bottom-&amp;gt;top functions ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Enrico&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2010 16:37:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-19T16:37:45Z</dc:date>
    <item>
      <title>Please help with DynamicUpdateCommand</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-DynamicUpdateCommand/m-p/153061#M30253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please HELP ME with macro.&lt;/P&gt;&lt;P&gt;I'm testig DynamicUpdateCommand&lt;BR /&gt;for a Budget application.&lt;/P&gt;&lt;P&gt;I would like to update some fild applying personalized functions.&lt;/P&gt;&lt;P&gt;This is my first test, but it return me a Blank msg box&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;sub enrico&lt;BR /&gt;&lt;BR /&gt;set docprop = ActiveDocument.GetProperties&lt;BR /&gt;docprop.EnableDynamicDataUpdate=true&lt;BR /&gt;ActiveDocument.SetProperties docprop&lt;BR /&gt;&lt;BR /&gt;SET Result = ActiveDocument.DynamicUpdateCommand("UPDATE Products SET Prezzo=0")&lt;BR /&gt;if Result = false then&lt;BR /&gt;MsgBox Result.ErrorMessage&lt;BR /&gt;else&lt;BR /&gt;MsgBox("FATTO")&lt;BR /&gt;end if&lt;BR /&gt;ActiveDocument.Save&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;------------------------------&lt;/P&gt;&lt;P&gt;The load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inputfield Prezzo;&lt;BR /&gt;Inputfield Quantita;&lt;BR /&gt;&lt;BR /&gt;products:&lt;BR /&gt;LOAD Prodotto,&lt;BR /&gt; Prezzo,&lt;BR /&gt; Quantita&lt;BR /&gt;FROM&lt;BR /&gt;sorgente_test_frutta.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Foglio1);&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;Where is the error ?&lt;/P&gt;&lt;P&gt;What is the best way for top-&amp;gt;bottom&lt;BR /&gt;or bottom-&amp;gt;top functions ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Enrico&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 16:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-DynamicUpdateCommand/m-p/153061#M30253</guid>
      <dc:creator />
      <dc:date>2010-02-19T16:37:45Z</dc:date>
    </item>
  </channel>
</rss>

