Automatically exiting omnis

Phil Potter (ou) Phil at pgpotter.demon.co.uk
Mon Dec 1 06:07:38 EST 2014


Hi Dave,

I prefer not to consider what time it is, just whether someone is trying 
to do some work!

in the $control of the task I have no 'on' statement' and just set a 
last activity variable to now...
Calculate tdLastActivity as #D

The variable being set to date time, down to seconds.

then in the timeout of your timer...
for example:

If (ddiff(kMinute,tdLastActivity,#D)<15)|#EDATA
15 minutes idle
note: what to do when editing data...

Just some thoughts
Phil.


On 29/11/2014 09:19, Dave Jobling wrote:
> Hi
>
> Some of my users are leaving my application open for days at time.  Does anybody have a good way of getting omnis studio 4.3 to automatically quit at a certain time in the evening?  .
>
> I suppose it could be done with a timer method.  If so, has anybody got any sample code?
>
> Thanks
>
> Dave Jobling.
>
>
> -- 
> Phil Potter
> Based in Chester in the UK.



More information about the omnisdev-en mailing list