[CLOSED] Saving records to a store and then saving that store back to the server/database

  1. #1

    [CLOSED] Saving records to a store and then saving that store back to the server/database

    I have a FormPanel and a Store with a JsonReader bound to the FormPanel's PagingToolbar which triggers data retrieval into the store, then the DataChanged event loads the store's data into the FormPanel.

    I'm trying to figure out the best way to save the formpanel's fields back to the store and for the store to be saved back to the server. Is there an example of this somewhere or can you post some sample code.

    Thanks in advance
    Last edited by Daniil; Apr 14, 2011 at 9:34 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Just use updateRecord method of FormPanel to save changes in the store, after that call save method of the store
    FormPanel1.getForm().updateRecord(editingRecord);
    Store1.save();
    Please see
    https://examples1.ext.net/#/Form/Mis...dit_Form_View/
    https://examples1.ext.net/#/Form/FormPanel/Basic/
  3. #3
    Thanks, you can close this as CLOSED

Similar Threads

  1. The GridPanel/Store saving description
    By Vladimir in forum 1.x Help
    Replies: 9
    Last Post: Aug 27, 2012, 9:49 PM
  2. Pop-up error message when saving store!
    By xmdxxa in forum 1.x Help
    Replies: 1
    Last Post: Mar 31, 2011, 6:36 AM
  3. using DataTable as Store and saving data
    By angel colmenares in forum 1.x Help
    Replies: 0
    Last Post: Apr 16, 2010, 12:13 AM
  4. [CLOSED] Error 500 saving grid store
    By harafeh in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 30, 2009, 2:59 PM
  5. [CLOSED] GridPanel store saving
    By methode in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Dec 16, 2008, 3:02 AM

Posting Permissions