Callback method of store.save() not working properly

  1. #1

    Callback method of store.save() not working properly

    I have set UpdateProxy for a ext.net store and calling it's save method from javascript code.

    it is working perfectly fine but I need to perform some task after completion of "SAVE" functionality. Therefore, I have used a callback function. I am also using this callback function in "store.load", which is working fine. but in "store.save" callback is not working properly. When I say "Properly" it means this callback function is executing only once and not second or third time until I refresh the complete page and rerun save command. I have also tried
    success:
    but success is not working completely.

    #{dsLetterUserTag}.save(
     {
        callback: function(result){
             alert('i am here' + result);
    
        }
                              
    });
    The proxy setting is as under:
    <UpdateProxy>
      <ext:HttpWriteProxy Url="~/Hrs/SaveOrUpdateRecord/" />
    </UpdateProxy>
  2. #2
    Hello @mamirbalouch!

    It would be easier for us to understand your needs if you provided a runnable test case that we could use to reproduce the scenario you're facing.

    But store's save() method has been deprecated for some time, you shouldn't rely on it if writing new code. So, please try using store's sync() method instead, then if you still have issues, let us know, and please provide a sample test case so we can reproduce the exact scenario you have.

    There are these threads with guidelines on posting questions that will help you get more accurate responses:
    - Tips for creating simplified code samples
    - More Information Required
    - Forum Guidelines

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 7
    Last Post: Jun 08, 2017, 12:43 PM
  2. Ext.data.Store.insert not working properly
    By paul-2011 in forum 3.x Help
    Replies: 0
    Last Post: Oct 30, 2015, 4:49 PM
  3. [CLOSED] store.filter method is not working
    By Fahd in forum 2.x Premium Help
    Replies: 6
    Last Post: Jul 01, 2013, 8:15 PM
  4. Replies: 2
    Last Post: Jan 10, 2013, 2:33 PM
  5. Store Save on New Row Not working?
    By Tbaseflug in forum 1.x Help
    Replies: 3
    Last Post: Nov 12, 2009, 8:45 PM

Tags for this Thread

Posting Permissions