In Extjs I do the interface and there I need to take the totalCount from the store, but when I get it through console.log I deduce it undefined from me.
Ext.define('Catalog.store.MVD.TrgTransportStore', { extend: 'Ext.data.Store', model: 'Catalog.model.MVD.TrgTransportModel', autoLoad: false, proxy: { type: 'rest', url: 'services/MTrgTransport', headers:{ Accept:'application/json' }, reader: { type: 'json', root: 'list', totalProperty: 'totalCount', successProperty: 'success' } } }); this is my store . console.log(1, this.store2); do console log comes this
data: constructor events: Object eventsSuspended: 0 filters: constructor groupers: constructor groups: constructor hasListeners: HasListeners lastOptions: Object loading: false model: constructor() modelDefaults: null pageSize: 25 proxy: constructor removed: Array[0] sorters: constructor totalCount: 6079093 __proto__: Object but when I do console.log(3, this.store2.totalCount) undefined