0

I am using ExtJS 4.2 REST store.

I want to sync the store with the server after adding some records to it.

each record is being transferred in a different post request.

I would like to make one call to the server with a list of new records.

Is there a way to do it?

AMember
  • 3,037
  • 2
  • 33
  • 64

1 Answers1

1

You can try setting batchActions to true... But there may be a reason why they have explicitly disabled it for REST proxy. Maybe it's because it's not RESTFul in its spirit, or maybe it's because it doesn't work...

rixo
  • 23,815
  • 4
  • 63
  • 68
  • 1
    It wouldn't be RESTFul if different kind of CRUD operations were batched in the same request, because the HTTP method wouldn't match the semantic for all the operations. Also, I don't know what REST purists would think about batching DELETE requests (as opposed to sending one request on each resource URL). – rixo Sep 10 '13 at 11:26
  • I get you, but I am batching POST requests of one type of resource. So I think I am still OK... ;) – AMember Sep 11 '13 at 05:52