PDA

View Full Version : spliting data store into two or more arrays



nmohan.025
28 Oct 2010, 9:51 PM
hi...
i have one data store,i need to split that data store into two or more array..so that whenever i need i can use that...
anyone is having some idea's help me....

Mjollnir26
28 Oct 2010, 11:18 PM
var arr1 = [], arr2 = [];
ds.each(function(record)
{
arr1.push(record.data.foo);
arr2.push(record.data.bar);
});


http://dev.sencha.com/deploy/dev/docs/