0 Replies Latest reply on Jul 17, 2008 1:35 PM by ericbelair

    Cairngorm Question About Command Logic

    ericbelair Level 1
      I have an editable DataGrid which allows users to add new items and update existing ones. The changes are not saved until the user clicks a "Save Changes" button. My question is, how should I handle the "Save Changes" event? Should I locally loop through the ArrayCollection used as the DataGrid's dataProvider and save each Object in the Event, dispatching each Event, one at a time, and processing each in a Save Command? Or should I save the entire ArrayCollection in the Event, dispatch the Event, and then loop through the ArrayCollection in my Save Command, processing all at once in the Command?

      Just looking for best practices, as I am new to MVC/Cairngorm in Flex.

      Thanks.