actionscript 3 - Is there a design pattern for this...? -
When a user selects a record in the datagrid, then I launch a pop-up window with more detailed information . Users can change records in this window but they do not have to save them. For example, they can click on X to close the window.
Unfortunately, I am stupid and whenever I make any changes to the user, I update the object directly
Whether to copy the object object and then mapping the changes in it Is there a way to do this when a user confirms that they want to save?
Thank you!
I will not go with the copy and will merge. Why do not you update the object only if the user wants to update / save clearly? Let the UI be UI and summarize the information about the sooner you need it. If you want something like a temporary editing, then you must use the command for each nuclear update, where every command has an inverse - undo-order. If you keep these in history, then you can go to the initial state only.
Comments
Post a Comment