W
William Stacey [MVP]
Say you have a tabed dialog window like the the MS DNS Properties Window.
You can go add/change/delete a bunch of stuff on each tab and hit cancel and
nothing on the server is changed (easy part). However, if you hit Apply or
OK, you then need to figure out what all was changed and do the
deletes/changes/add in some kind of order on the server. Things like
Deletes are interesting as you can't just use the list box current state to
figure that out. You would have to have saved the delete operation in some
state somewhere. Then the user adds back the same thing they deleted, etc.
This gets confusing. Any general pattern here or other such links or ideas
on this? TIA
You can go add/change/delete a bunch of stuff on each tab and hit cancel and
nothing on the server is changed (easy part). However, if you hit Apply or
OK, you then need to figure out what all was changed and do the
deletes/changes/add in some kind of order on the server. Things like
Deletes are interesting as you can't just use the list box current state to
figure that out. You would have to have saved the delete operation in some
state somewhere. Then the user adds back the same thing they deleted, etc.
This gets confusing. Any general pattern here or other such links or ideas
on this? TIA