Currently immersed in a JavaScript project utilizing Sencha, I've encountered an issue that has me completely stumped.
The problem seems straightforward. Behold my code snippet:
console.log("store : ");
console.log(store);
console.log("store length :");
console.log(store.data.length);
And this is the result it yields:
store :
_data: Ext.apply.create.Class
_model: ()
_modelDefaults: Ext.Object.classify.objectClass
_params: Ext.Object.classify.objectClass
_proxy: Ext.apply.create.Class
_remoteFilter: false
_remoteGroup: false
_remoteSort: false
_storeId: "Indicator_Value"
_syncRemovedRecords: false
config: Ext.Object.classify.objectClass
data: Ext.apply.create.Class
_autoFilter: true
_autoSort: true
_filterRoot: "data"
_sortRoot: "data"
all: Array[2]
config: Ext.Object.classify.objectClass
dirtyIndices: false
getKey: (record)
indices: Object
initConfig: ()
initialConfig: Object
items: Array[2]
keys: Array[2]
length: 2
map: Object
__proto__: Ext.util.Collection#constructor
dateFirst: Mon Aug 31 2015 14:47:36 GMT+0200 (Paris, Madrid (heure d’été))
dateLast: Mon Aug 31 2015 15:02:48 GMT+0200 (Paris, Madrid (heure d’été))
emptyNext: false
emptyPrevious: false
eventDispatcher: Ext.apply.create.Class
getEventDispatcher: ()
getId: ()
getObservableId: ()
getUniqueId: ()
graphType: 1
id: "myapp-store-indicator_value-1"
indicatorId: 262
initConfig: ()
initialConfig: Object
initialized: true
managedListeners: Object
observableId: "#myapp-store-indicator_value-1"
period: "H"
removed: Array[0]
titleIndicatorValue: "Duration in FTC"
usedSelectors: Array[1]
__proto__: Object
store length :
14
I'm at a loss. According to logic, store.data.length should be 2, yet it consistently shows 14. Could it be that there's some fundamental concept about how stores function that eludes me? Any support would be immensely appreciated; I've been grappling with this for around 2 hours now, and I can't seem to find a way out.
Thank you!