Results 1 to 3 of 3

Thread: Setting Filter on PieChart's Store after reload throws exception 1009 NSObject

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    53

    Default Setting Filter on PieChart's Store after reload throws exception 1009 NSObject

    Hello,

    I'm trying to reload a jsonstore that populates a piechart. I've got a on load event handler on the jsonstore that sets the filter value for the store. On the first load, everything works great, but it I reload the store (hit the server) and re-assign the filter I get the exception. Here is my code. Can somebody help; pulling out my hair on this.

    function pieChartDataLoaded (store, records, options) {
    store.filter('CURRENTFILTER', pieChartStoreFilter);
    }

    works on the initial load, and then fails when I hit the same function after a reload call (which I assign params to).

  2. #2
    Sencha User VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501

    Default

    What's the exception message, and where is 'pieChartStoreFilter' defined?

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    53

    Default

    var pieChartStore = new Ext.data.JsonStore({
    url: ('/components/RevenueSplitsByPartnership.cfc?method=getRevenueByPartnership&returnFormat=json'),
    root: 'ROWS',
    fields: ['VALUE','LABEL','CURRENTFILTER', 'FORWARDFILTER', 'BACKWARDFILTER']
    });

    uncaught exception: Error calling method on NPObject! [plugin exception: "TypeError: Error #1009: Cannot access a property or method of a null object reference."].

    Line 0

    When I reload the dataset from the cfc I pass in params like so.

    pieChartStore.reload({'params':params});

Similar Threads

  1. store.reload() throws "this.proxy is undefined"
    By ajain in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 5 Jan 2011, 9:35 PM
  2. How to keep store filter after reload
    By ironlion in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 16 Feb 2010, 5:15 PM
  3. [FIXED] Removing an element from a grid store throws exception
    By yleguern in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 28 Aug 2008, 9:02 AM
  4. GroupingView throws cfg exception in FF
    By Rainher in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 27 Feb 2008, 6:57 AM
  5. Store filter/snapshot reload bug
    By steven in forum Ext 1.x: Bugs
    Replies: 4
    Last Post: 18 Apr 2007, 6:52 PM

Posting Permissions

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