I haven't gotten this error before but I am going to guess it is because tempObject does not have a MY_FIELD property.
That's what it seems -- no "MY_FIELD" variable in the temp object. Can you show what your object contains?
Thanks for reply and help.
"MY_FIELD" is there, i just checked. I think I need to sort the ADG grouping in different way.
I am checking this link:
I am not using action script to create my grouping.
I try this:
myGroupedData.grouping.fields.compareFunction = positionCompareFunction;
private function positionCompareFunction(a:Object, b:Object):int
return ObjectUtil.stringCompare(a.MY_FIELD, b.MY_FIELD);
But it's not working. Any one can help with this?
I found a nice example of sorting ADG with grouping:
After implementing this code the issue persist, the issue was that I need to delete the sort before to delete the array collection so i fixed doing:
IHierarchicalCollectionView(adv_dg.dataProvider).sort.fields = ;
I hope this help for someone later.