
Announcements
Hello,
I just want to check my logic on something and check if what I am thinking is the correct way yo go about it.
I have a gallery that displays data from a collection that is generated from a sharepoint list. The gallery allows the editing of those records and will patch the amendments back to the list. However, I want to also have the option to delete records, both from the collection and the underlying list. This is how I think I should do it.
On clicking the delete button the record gets moved to another collection called collDeletedItems and removed from the main collection. When the edits are finalised the data from the main collection is patched back to the sharepoint list and the items in the deleted items collection get removed from the original sharepoint list. Is this the simplest way to achieve this or am I missing something? I guess this way allows me to also instigate a recycle bin, in case of user error, but then that exists in the source sharepoint list anyway.
Any advice would be appreciated.