View Full Version : Subclassing Ajax Proxy for Custom CRUD Functions?

28 Jul 2011, 10:56 AM
I'd like to use the same Store for my user data handling. However, my CRUD Ajax operations are all different URL's (same hostname, different paths). If I wanted to work within the Store data model, I could potentially extend AjaxProxy with my own overridden Add and Update methods, but I have no idea what kinds of interactions the proxy CRUD methods have with the Store.

After looking at ServerProxy.doRequest(), it seems like I could pass my own Operation to it and then somehow it would magically work.

Any ideas? Would LOVE to get some direction/advice before I go down this rabbit hole.


1 Aug 2011, 9:57 AM
Is there a more obvious way around this problem?

10 Jun 2012, 4:20 AM
Sencha 2.1

You have to change the actionMethods property in the Rest Proxy.
Define a function name for the Create, Read, Update and Delete
and implement the functions.