• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

update-locking

 
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
 
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).
    Bookmark Topic Watch Topic
  • New Topic