Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Understanding commit, updateurl, transactionlog, saveChanges
posted

Hi!

I'm unable to figure out how to do persist a update into my server. I've not found any good examples on how to use the "saveChanges" functionality. From the blogpost here: #mce_temp_url# I found that returning a "Success" = true, should clear the transaction log, but it does not seem to do it. (but I might have misunderstand how it should work)

So, here are my questions:

  • To persist a update to a row, what should I do ? 
    • A) In the rowupdated event, call "saveChanges" on the grid. (updateUrl is set)
    • B) In the rowupdated event get the modified cells and post them myself?
  • To commit the changes on the client? (assume this is in UI clearing the italic font)
    • A) Call commit() after a successfull update
    • B) Set autoCommit = true, and return "Success" = true
  • What about the transaction log?
    • A) Don't care about it, it just works
    • B) It is important, this is what gets sent on saveChanges
    • C) It gets cleared on every commit

 

As you can see from my question I'm a bit confused on how to do this. I found no good documentation describing this functionality.

Thanks for any help

Larsi