Hi! I have written simple code for a model with no associations or validations. If I create a store now, which has summary grouping feature and a memory proxy I get an error while adding a new model instance to my store. He throws :

Code:

me.summaryGroups[index - 1] is undefined

in GroupingSummary.js at printData function. Does anyone know what causes this problem ? It is just simple configuration of model and store. Any suggestions?

19 Aug 2011, 12:14 AM

raz0r1

next time please post a line number and a small example code so someone who wants to help does have less work to find what you meen.

I also tried initial data in the store. If I add records in a loop. For example 3 records. The first 2 get added. The last throws the error. And like I said. The error is thrown in GroupingSummary.js on line 162.

Thanks 4 help

19 Aug 2011, 1:52 AM

raz0r1

sorry but it seems like you have an issue anywhere else in your code.
follow works:

after that, execute "store.getGroupData()" in firebug. You get the right output

19 Aug 2011, 3:22 AM

HTK

I´ve found out that my records miss the index property. When I create a JSON Object and add that via store.loadData(record) it works and my records have an index property. I cannot see the reason for that behaviour