Hello All, I have a Cairngorm-based application. On a particular screen within this App, I have a Products DataGrid with a DataProvider (from my Model) assigned to it. The variable from my Model, is "productsList" - which is an ArrayCollection populated with ProductVO's returned from the CF Server.
With any typical Cairngorm Application, you assign your DataProvider properties to the Model Variables - in order to keep everything centralized & controllable. If I have a Row selected in this DataGrid, and I want to delete this particular Record, what is the best way to accomplish this? On the surface, this sounds like a really simple/stupid question - BUT, there is more to it than that. I want to make sure that I'm doing this in a politically correct manner - following the rules of well-written application practices. Instead of simply blowing away the Record from the DataGrid, I want to broadcast a Cairngorm Event, which removes the ProductsDataGrid 'selectedItem' (as a VO possibly??) from the "productsList" ArrayCollection. Since the "productsDataGrid.dataProvider" is bound to "model.productsList", the changes will obviously be reflected in the DataGrid, once I remove the item from the ArrayCollection. BUT, I don't want this to happen, until I get a validated "True or False" response from the ColdFusion Server - otherwise, I will get potential consistency issues. Like - if the server is unreachable at the moment. It would be confusing to the User, if the record got deleted from the DataGrid, but not from the actual DataBase. What would be the best "Full Circle" solution, to attack this problem? Thanks in advance, for any advice on this. Mike -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

