Results 1 to 2 of 2

Thread: Problem Retrieving totalProperty value from JsonReader inside JsonStore

  1. #1
    Ext User
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
      0  

    Default Problem Retrieving totalProperty value from JsonReader inside JsonStore

    For some reason I seem to be unable to actually retrieve the totalProperty value on the load event for this store ... I've tried variations and it seems to be undefined ... I need it for my paging algorithm ... I do recognize the Store, Proxy, Reader relationships and I've tried various combinations, but it consistently doesn't seem to be available ... thoughts?

    imageListInfoStore.on('load', function(store) {
    console.log('imagesCount'+store.getTotalCount());
    });

    var imageListInfoStore = new Ext.data.JsonStore({
    model: 'pacsImages',
    proxy: {
    type: 'ajax',
    url: '/mobile/app/getImageListInfo',
    extraParams: {
    params: '',
    sortField : '0',
    sortDir : 'NONE',
    mrn : '',
    studyUID: '',
    seriesUID: '',
    start: '',
    limit: ''
    },
    reader: {
    type: 'json',
    root: 'imageURLs',
    totalProperty: 'imagesCount'
    },
    timeout: 180000 //Set to 3 minutes
    },
    pageSize: 16
    });

  2. #2
    Ext User
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Solved it myself ...

    console.log('imagesCount'+store.getProxy().getReader().rawData.imagesCount);

Similar Threads

  1. problem with JsonStore and JsonReader
    By kalan in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Jun 2010, 3:59 AM
  2. JsonReader: What if server does not provide 'totalProperty'?
    By MatteoSp in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 19 Sep 2009, 6:50 AM
  3. [Solved] How to get totalProperty value from JsonReader?
    By outlawbt in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 2 Mar 2009, 12:44 PM
  4. jsonReader totalProperty and pagingToolbar
    By dolittle in forum Ext 2.x: Help & Discussion
    Replies: 12
    Last Post: 17 Jul 2008, 4:08 PM
  5. Replies: 1
    Last Post: 18 May 2008, 8:32 AM

Posting Permissions

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