• Post Reply Bookmark Topic Watch Topic
  • New Topic

update-locking

 
Goran Borozan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
In my GUI i hava a pop-up dialog that allow the user to book room.
My question is: Is it better to try to lock when the pop-up window creates(risk that the user forget the window and tge record is locked) or lock when the user is finished with writing the owner name(risk for overwriting)?



Thanks
/Goran
 
Serkan Yazici
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Goran,

I think it would be better the minimise the amount of time after locking a record. In my project, I didn't display a dialog for booking (handled on the main gui) but if I did; I would do the booking after the dialog but also check for record inconsistency (making sure the record key is not changed).
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!