Results 1 to 2 of 2

Thread: handle create/update in one action

  1. #1
    Sencha User
    Join Date
    Dec 2011

    Default handle create/update in one action

    We have a grid that allow user to create new record as wells as update existing records, and we have a "save" button which will issue the store.sync. When the user's dirty data contains both new records and existing records, EXTJS always issue two separate ajax calls, one for create and one for update. We would like extjs only send one ajax call for both create/update, this way we can handle it in one transaction in the back end code. Is there a way to config this?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Houston, Tx


    The sync looks at the records and determines what to api method to call. You could always make a direct ajax call your self instead of calling sync and send all the dirty records and let your server handle the rest.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts