1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    21
    Vote Rating
    0
    Domi is on a distinguished road

      0  

    Default How can I commit my store's changes during one session?

    How can I commit my store's changes during one session?


    The docs state say, Ext.data.Store.commitChanges() is supposed to commit changes. But -in case of JSon- it does not send the changes to the server nor -in case of XML- does it save a new XML document. That is obviously caused by the fact that the underlying proxy can only load and not save/submit changes. commitChanges() only seems to mark all records as un-edited.

    What is the smartest way to notify the server about changes that have been made? Take all records that have been edited... and then?

    Let's say, I'm using JSon - is there any way that automatically wraps all those records into JSon-format, so I can just send it to the server?

    After submitting, I suppose, I'll use commitChanges() or force the user to correct his input (alternatively just reject the changes), depending on what the server tells me.

  2. #2
    Ext User
    Join Date
    Oct 2007
    Posts
    21
    Vote Rating
    0
    Domi is on a distinguished road

      0  

    Default


    I guess I found all the answers that I need:

    Store is a readonly-representation of remote data

    And Ext.util.JSon delivers the tools that I need when working with JSon.