PDA

View Full Version : Support in the new Data package for proxy connection to association actions



gkohen
30 Apr 2014, 8:00 AM
Hi,

For a while now there as been an issue where you wanted to save changes done to a store down to it's associations (some/all of the CRUD operations). These where not propagated to the proxy. Many workarounds and overrides had to be writtento achieve this in ExtJS 4 as noted on this thread:
http://www.sencha.com/forum/showthread.php?141957-Saving-objects-that-are-linked-hasMany-relation-with-a-single-Store

Has this issue been addressed in Ext 5?

Thanks.

dongryphon
1 May 2014, 1:01 AM
If you are using a Session you can get all changes using getSaveBatch (see http://docs-devel.sencha.com/extjs/5.0.0/apidocs/#!/api/Ext.data.Session-method-getSaveBatch)