Hi all,i tried to use the data(records) returned from the server,but dont know what type of the data is,my code is like below .seems it's an array,but i just cant use the its elements.
Code:
xxx.store.load(//json store {
callback: function(records, options, success){
this.reader.jsonData.groups.group1;//i can call it like this
records.groups;//doesnt work
records[0];//[object Object]
records[0].group1;//undefined
records.length==6//
} });
data from server
Code:
{
"groups" : {
"group1" : "Week33",
"group2" : "Week34",
"group3" : "Week35",
"group4" : "Week36",
},
"rows": [ { "data1":"data" } ],
"success" : true,
"metaData" : null,
"cacheName" : "",
"totalRowCount" : 6
}