ej.JsonAdaptor.prototype.processResponse = function (data, ds, query, xhr) { var arraylist = data.result; for (var i = 0; i < arraylist.length; i++) {
for (var key in arraylist[i]) { … temp[key]["key" + count] = arraylist[i][key];
}
count++; } for (var key in temp) { var tmpData = { ColKey: key }; $.extend(tmpData, temp[key]); prptData.push(tmpData); } data.result = prptData; return data; } |