Hello, all - got a newbie question. We have been evaluating Flex as a  
replacement to Flash / Remoting. We are using Flex (obviously) as the  
front-end, ColdFusion in the middle, and MS SQL2K as the DB server.

The goal is to create a simple table-maintenance app which does the  
following:
        - Displays a list of existing items (tasks, in this case) from a table
        - Allows these items to be edited, automatically saving any changes  
made
        - Allows items to be deleted - again, autosaving to the database.
        - Allows items to be added - you guessed it, auto-save here as well.

I have created the .as and .cfc files using the ColdFusion Wizard.

The items in the table are being presented in an editable datagrid.

The dataProvider for the dataGrid is an arrayCollection.

I've got everything working - created an eventListener on the  
arrayCollection that automatically saves deletes, inserts, and  
updates. However, when I insert new rows, I'm having a hard time  
figuring out how to set the newly generated identity value back in  
the correct row of the arrayCollection.

First off, am I doing this right? Second, how do I find the row that  
just inserted so that I can update it with the DB-generated identity  
value?

Thanks in advance,

Greg

Reply via email to