In Kevin Vandever's book, 'Subfiles In RPG IV', he gives an example for deleting file records using a subfile I am a little unclear about.
The subfile reads a database file and allows a user to select records to delete by selecting more than one record in at option field. The subfile records are then displayed in a confirmation screen before they are physically deleted from the database.
My concern is that since the records on the confirmation screen are in the subfile, they are not locked to prevent other users deleting them or locking them for modification during the time between the subfile build and a user confirming the delete selection.
How should I get round this?
Simply assume all can be deleted and report those that cannot in a message subfile?
The subfile reads a database file and allows a user to select records to delete by selecting more than one record in at option field. The subfile records are then displayed in a confirmation screen before they are physically deleted from the database.
My concern is that since the records on the confirmation screen are in the subfile, they are not locked to prevent other users deleting them or locking them for modification during the time between the subfile build and a user confirming the delete selection.
How should I get round this?
Simply assume all can be deleted and report those that cannot in a message subfile?