Results 1 to 2 of 2

Thread: Ext.data.Proxy handle create/update in one action

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    16

    Default Ext.data.Proxy 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
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716

    Default

    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.

    Scott.

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
  •