If I understand correctly, your "addItem" method will only add a record to
the bottom of the arrayCollection, I don't believe that it will add a
property to the end of each record.  I am looking for something like this I
think, where compsArrayCollection is my original dataset:

var origArray:Array = new Array();
var newArray:Array = new Array();

origArray = compArrayCollection.source;
for each(var o:Object in origArray) {
        o.newProperty = true;
        newArray.push(o);
}
                                
compArrayCollection.source = newArray;

My compArrayCollection is populated by a PHP service and I think that is why
I am having trouble with this.  I get the error:

Error #1056: Cannot create property newProperty on
valueObjects.CustomDatatype6

CustomDatatype6 was created during the service formation, and does not seem
to like me trying to add to any of its properties.



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Rookie-ArrayCollection-Question-tp13649p13651.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to