Results 1 to 3 of 3

Thread: How can i stop a batch of proxies requsting to server?

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    36
    Answers
    1
    Vote Rating
    0
      0  

    Default Unanswered: How can i stop a batch of proxies requsting to server?

    I have a problem with batch of proxies request to server any time how can i stop/cancel?
    I have a block of code that need to execute a mount of stores, but if match any condition i still want execute that block of code just want disable or cancel all stores.

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,099
    Answers
    113
    Vote Rating
    100
      0  

    Default

    I am not sure if I understand your question clearly. I think you want to cancel sending a request to your backend and reject the changes in the store. For this, the rejectChanges method of the store might help you. If you want to prevent the store from automatically syncing with the backend on every change, then you should set autoSync to false for the store.

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    36
    Answers
    1
    Vote Rating
    0
      0  

    Default

    I mean i want abort ajax on proxies.
    every request to server i have tracking on my app.js like this:
    Code:
     ...
     appFolder: './js/Ext/app',
        init: function () {
          var me = this;
          CRM.app = me;
           Ext.data.StoreManager.on('add', function (i, store) {                    
                store.on('beforeLoad',function(st, operation){
                    
                    //In here every store before load will be execute this block, so i want cancel/abort  any time 
                   //After search many hours some people suggest use Ext.Ajax.abort(requestId) but i am no luck :s 
                
                    
                });
                store.on('load', function (st) {
    ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •