On 9/8/10 9:22 AM, MB Software Solutions, LLC wrote:
> One of my older clients (7 years ago!  And that app is still kicking ass
> for them!  haha) has requested that I change their app to auto-save
> based on activity/inactivity.  Does this mean that in my entry controls
> like textbox, editbox, checkbox I put code in the KeyPress to update the
> form's custom "LastHit" property with the current date/time stamp and
> key off of that for logic to save and/or kick them out (due to
> inactivity)?  Could add code in the button's GotFocus event too I guess.

I'd set up your hit tracking in the biz layer (track the last hit timestamp 
whenever 
a biz operation results in changing a field value), and then run a timer in the 
UI 
layer that fires every couple minutes (or whatever your threshold is, perhaps 
defined 
bizobj by bizobj) to determine if activity warrants an auto-save or if 
inactivity 
warrants a logoff.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to