Results 1 to 3 of 3

Thread: Catching data store exception in ExtJS 4?

  1. #1
    Sencha Premium Member dpaquin's Avatar
    Join Date
    Jul 2011
    Location
    Vancouver, Canada
    Posts
    31

    Default Catching data store exception in ExtJS 4?

    Hello Sencha Forums,

    In ExtJS 3 I had set an exception listener for a data store which performed some cleanup in the UI when no data was returned from the store's ajax call. When upgrading the page to ExtJS 4, I notice that 'exception' is no longer an event for Ext.data.Store. Has this event moved to a different component, or is it no more?

    Thanks in advance

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2011
    Location
    Dallas, TX
    Posts
    204

    Default

    +1

  3. #3
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,153

    Default

    It's now available on the proxy.

    http://docs.sencha.com/ext-js/4-0/#!...ata.proxy.Ajax

    exception( Ext.data.proxy.Proxy this, Object response, Ext.data.Operation operation, Object eOpts )

    Fires when the server returns an exception
    Parameters

    this : Ext.data.proxy.Proxy
    response : Object

    The response from the AJAX request
    operation : Ext.data.Operation

    The operation that triggered request
    eOpts : Object

    The options object passed to Ext.util.Observable.addListener.

Posting Permissions

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