Results 1 to 2 of 2

Thread: When fire Event 'exception' in DirectStore??

  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    3
    Vote Rating
    0
      0  

    Post Unanswered: When fire Event 'exception' in DirectStore??

    PHP Code:
    Ext.onReady(function () {        Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);        var ds = new Ext.data.DirectStore({            directFnGrid.getData,            paramsAsHashfalse,            paramOrder: ['start''limit''sort''dir'],            root'data',            idProperty'MV_ID',            totalProperty'total',            messageProperty'msg',            successProperty'success',            sortInfo: {                field'MV_ID',                direction'ASC'            },            fields: [                { name'MV_ID'type'int' },                { name'MV_TITLE'type'string' },                { name'INTERNAL_COMMENT'type'string' },                { name'MV_INTRO'type'string' },                { name'CREATE_DT'type'date' }            ],            remoteSortfalse,            pageSize100,            autoLoadtrue,            listeners: {                /*                load: function (store, records, success, operation, option) {                console.log(operation);                console.log(option);                console.log(store);                if (success === false) {                Ext.MessageBox.show({                title: 'REMOTE EXCEPTION',                //msg: operation.getError(),                msg: '?????',                icon: Ext.MessageBox.ERROR,                buttons: Ext.Msg.OK                });                }                },                */                load: function (storerecordssuccessoperationoption) {                    console.log('load');                    console.log(this);                    console.log(store);                    console.log(records);                    console.log(success);                    console.log(operation);                    console.log(option);                },                beforeload: function (storeoperationoption) {                    console.log('beforeload');                    console.log(this);                    console.log(operation);                    console.log(option);                },                beforeprefetch: function (storeoperationoption) {                    console.log('beforeprefetch');                    console.log(this);                    console.log(operation);                    console.log(option);                },                exception: function(){                }            }        });
        }
    }); 
    What is a sequence of function calls?

    did "exception event" remove in extjs4 If not how does "exception event" triggered

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,318
    Answers
    3883
    Vote Rating
    1291
      0  

    Default

    If the exception event doesn't fire on the DirectStore (not one listed in API docs) then there is one on the proxy.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

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

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
  •