Results 1 to 2 of 2

Thread: Sync no has Callback | Failure or Exception

  1. #1

    Default Sync no has Callback | Failure or Exception

    only works for success!

    store.sync({
    success: function () {
    console.log("sucesso !!");
    },
    failure: function () {
    console.log("falhou ...");
    },
    callback: function () {
    console.log("chamar callback");
    },
    exception: function () {
    console.log("chamar exception");
    }
    });

    the need to operate the exception that
    store.getProxy().on({
    exception: function () { // this in order to catch exceptions when sync
    console.log("Transaction exception .... handle the exception here");
    }
    });

    Any way to fix this? An overload in store solve?
    Ideas:
    http://www.sencha.com/forum/archive/...t-242529.html?
    http://www.sencha.com/forum/showthread.php?136183

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    There is a open feature request for this TOUCH-2271. Until then I would suggest using one of the suggested workaround from the links you included. FYI the exception listener should be defined on your store.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Tags for this Thread

Posting Permissions

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