Mike Fechner
375 posts
Registered:
14 Sep 2016
Answered
05 Jan 2021
Link to this post
There is no simple and no single true answer to this question.
In most cases updates to additional records should be done in a Business Task wrapping the update in a single transaction - or in the Data Access class. This all depends on nuances of the use case.
In this case, where other records from the same table need to be updated in the way you have described, I would implement that as part of the Data Access class straight on the Database tables. Unless you need those records during the update in the ProDataset, there's probably no added value to read those records into the ProDataset just to update a logical status field.
The challenging bit with this technique however is that this may cause that the view of those additional records table kept in the ProDataset on the client gets purposely out of sync with the database records. If you'd attempt to update one of those additional records later, the ProDataset SAVE-ROW-CHANGES method may throw the error that the current recrdo has been changed to by another user. This may or may not be an issue for you.