Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not to update database before 1 minute

 
paras virdi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
when i click on add button,i want to update the database.Again if i click the add button within 1 min. i dont want to update the database.
please tell what to do for that

thanks
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if i got your question right, then this is not ORM but GUI related.

Just disable the button and start a timer to enable it after one minute.
or everytime you click the button, you check the last time the button was pressed. if there is less than one minute in between then do nothing:

did not check this code but something along this line should work:



pascal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic