I need to add an extra field where data will be added. The field would be empty, to start, and isn't coming from another arrayCollection to merge with the original.
JF --- In [email protected], Alex Harui <aha...@...> wrote: > > Merged array list example on my blog > > From: [email protected] [mailto:[email protected]] On Behalf Of jmfillman > Sent: Wednesday, January 07, 2009 3:54 PM > To: [email protected] > Subject: [flexcoders] Modify arrayCollection Structure > > > Is there a good way to add a "column" of data to an arrayCollection? > > For example, I have an arrayCollection with the following > data "columns" as received from my remoteObject call: > > id, firstName, lastName, phoneNumber > > I need to add an extra "column" for use in my app: > > id, firstName, lastName, phoneNumber, date > > I don't need the last field saved in my database, but I haven't found > a good way to add this extra "column" to the arrayCollection short of > creating the extra field in the database and passing it back to my > app with the query results. This seems unnecessary to have a "dummy" > field in my database. I could probably loop through the results and > add them to another arrayCollection with my needed structure, but > from a performance standpoint in my app, that's a less desirable > option than just using the "dummy" field. > > Are there other options? > > JF >

