1. #1
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
    dsimcik is on a distinguished road

      0  

    Question Subclassing Ajax Proxy for Custom CRUD Functions?

    Subclassing Ajax Proxy for Custom CRUD Functions?


    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.

    Thanks,
    DTS

  2. #2
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
    dsimcik is on a distinguished road

      0  

    Default


    Is there a more obvious way around this problem?

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    34
    Vote Rating
    0
    pashute is an unknown quantity at this point

      0  

    Default Change the actionMethods

    Change the actionMethods


    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.

Thread Participants: 1