We might come across a requirement, where multiple users use a form and when an user deletes all the records from the form, the records corresponding to the current user should get deleted.
since the other user might in the middle of something, so that he doesn’t have any conflict with the data.
In this scenario, just create a new field of GUID datatype. in the table.
declare a variable for GUID.. IN THE CLASS Declaration.
and write the code in init() method as,
transid = newguid();
the transid generated will be different for differnet users.
so if the current user inserts the records into the table along with the transid field.
when user tries to delete all the records we might keep a restriction to delete the records that are created by him based on the transid.