Page 4 of 4 FirstFirst ... 234
Results 31 to 32 of 32

Thread: ExtJS 4 Sync and success/failure processing

  1. #31
    Sencha Premium Member
    Join Date
    Apr 2014
    Posts
    3
    Vote Rating
    0
      0  

    Default It worked

    Thank you very much for giving this simple solution. Very nice exactly I am looking for this kind of solution for past two days..YOu saved my valuble time. I really appreciate it.

  2. #32
    Sencha Premium Member
    Join Date
    Apr 2014
    Posts
    3
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by powellke View Post
    You can get access to the returned json data from the operation argument to the success and failure functions. For example, when I call save on a "user" record and the save fails on the server side, I can return the failure json:


    { "success": "false", "message": "Error message goes here." }


    and get it from the op:


    user.save({
    success: function(rec, op) {
    // do something
    },
    failure: function(rec, op) {
    Ext.Msg.alert("Failed",op.request.scope.reader.jsonData["message"]);
    }
    });


    It took a little digging to find that, but it's there.
    thank you it worked for me I really appreciate your help.

Page 4 of 4 FirstFirst ... 234

Posting Permissions

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