<?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 Help Saving Updated Fields - Budget test in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-Saving-Updated-Fields-Budget-test/m-p/167191#M38854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;BR /&gt;i need a little help for a test Budget.&lt;/P&gt;&lt;P&gt;I would like to "SAVE" the modified Budget Field&lt;BR /&gt;because when i reload the budget field change to the original values.&lt;BR /&gt;I Have thinked about a Button "Save" ad a second "Reset"...&lt;/P&gt;&lt;P&gt;but i don't know how to save changed values..&lt;/P&gt;&lt;P&gt;LOAD SCRIPT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;Products_tmp:Load * INLINE [ProductID,CostPrice1,102,203,304,40];Products:Load *,CostPrice As BudgetCostPriceRESIDENT Products_tmp;DROP TABLE Products_tmp;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;-----------------------------------------------------------------&lt;/P&gt;&lt;P&gt;MACRO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;' Provide the selected record Updatesub modNewCost2 dim strVal,strValIDprodotto ' New record Value SET objSource = ActiveDocument.Variables("vNewCost2") srtVal = objSource.GetContent.String ' New Value SET recProdotto = ActiveDocument.Variables("IDprodotto") recProdotto = recProdotto.GetContent.String ' UPDATE query="UPDATE Products SET BudgetCostPrice="&amp;amp; srtVal &amp;amp; " WHERE ProductID='"&amp;amp; recProdotto &amp;amp;"'" set sqlerror=ActiveDocument.DynamicUpdateCommand(query) if (sqlerror = false) then ' send message when error MsgBox sqlerror.ErrorMessage exit sub end if end sub' Save data..incompletesub salva set v = ActiveDocument.GetVariable("SALVA") v.SetContent "1",trueend sub&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last thing, if i set&lt;/P&gt;&lt;P&gt;inputfield BudgetCostPrice;&lt;/P&gt;&lt;P&gt;This Break the update macro, and it produce an Out Of memory ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Mar 2010 18:16:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-03T18:16:45Z</dc:date>
    <item>
      <title>Help Saving Updated Fields - Budget test</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Saving-Updated-Fields-Budget-test/m-p/167191#M38854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;BR /&gt;i need a little help for a test Budget.&lt;/P&gt;&lt;P&gt;I would like to "SAVE" the modified Budget Field&lt;BR /&gt;because when i reload the budget field change to the original values.&lt;BR /&gt;I Have thinked about a Button "Save" ad a second "Reset"...&lt;/P&gt;&lt;P&gt;but i don't know how to save changed values..&lt;/P&gt;&lt;P&gt;LOAD SCRIPT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;Products_tmp:Load * INLINE [ProductID,CostPrice1,102,203,304,40];Products:Load *,CostPrice As BudgetCostPriceRESIDENT Products_tmp;DROP TABLE Products_tmp;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;-----------------------------------------------------------------&lt;/P&gt;&lt;P&gt;MACRO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;' Provide the selected record Updatesub modNewCost2 dim strVal,strValIDprodotto ' New record Value SET objSource = ActiveDocument.Variables("vNewCost2") srtVal = objSource.GetContent.String ' New Value SET recProdotto = ActiveDocument.Variables("IDprodotto") recProdotto = recProdotto.GetContent.String ' UPDATE query="UPDATE Products SET BudgetCostPrice="&amp;amp; srtVal &amp;amp; " WHERE ProductID='"&amp;amp; recProdotto &amp;amp;"'" set sqlerror=ActiveDocument.DynamicUpdateCommand(query) if (sqlerror = false) then ' send message when error MsgBox sqlerror.ErrorMessage exit sub end if end sub' Save data..incompletesub salva set v = ActiveDocument.GetVariable("SALVA") v.SetContent "1",trueend sub&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last thing, if i set&lt;/P&gt;&lt;P&gt;inputfield BudgetCostPrice;&lt;/P&gt;&lt;P&gt;This Break the update macro, and it produce an Out Of memory ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 18:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Saving-Updated-Fields-Budget-test/m-p/167191#M38854</guid>
      <dc:creator />
      <dc:date>2010-03-03T18:16:45Z</dc:date>
    </item>
  </channel>
</rss>

