PDA

View Full Version : Idle timer



Henrik Staun Poulsen
15-Mar-2005, 08:40 AM
Dear All,

I have implemented a timer object, with which I can make all running
Dataflex sessions do things like showing messages or shutting down.

But I have a need the shut down all DataFlex sessions that are idle,
I.e. where the user has left the PC with a Dataflex screen waiting for
input.

The problem I have, is that the idle timer fires even if the user is
running a lengthy report.

Apart from changing all my reports and business objects (to disable the
timer), what can I do?

Best regards

Henrik Staun Poulsen
Denmark

phvwijk
15-Mar-2005, 09:34 AM
Henrik

Just switch it of when you do reporting or any other lengthy process.

Peter H. van Wijk
X-Organize Consultancy N.V.


"Henrik Staun Poulsen" <hsp@dai-as.dk> wrote in message
news:MPG.1ca104384c896f279896c5@news.dataaccess.co m...
> Dear All,
>
> I have implemented a timer object, with which I can make all running
> Dataflex sessions do things like showing messages or shutting down.
>
> But I have a need the shut down all DataFlex sessions that are idle,
> I.e. where the user has left the PC with a Dataflex screen waiting for
> input.
>
> The problem I have, is that the idle timer fires even if the user is
> running a lengthy report.
>
> Apart from changing all my reports and business objects (to disable the
> timer), what can I do?
>
> Best regards
>
> Henrik Staun Poulsen
> Denmark

Henrik Staun Poulsen
18-Mar-2005, 02:05 AM
Peter,

The problem is that I do not know if a report is "lengthy" or not; it
depends on the selection criteria.

I had hoped that an "idle" timer was only trigging when the system was
idle.

Now I need to go thru all my code, and find all places to disable and
enable the timer. I'd better make sure that there are not two ways out
of an object, so that the program forgets to enable the timer again.

Thank you.

Henrik

phvwijk
18-Mar-2005, 09:21 AM
Henrik,

If you use one subclass you can get the stop of the idle timer in one place
and stop which each report starting and start when printing is done.
But do not know what you are using. If you use the reportclass it should
easy to do.

Peter H. van Wijk
X-Organize Consultancy N.V.

"Henrik Staun Poulsen" <hsp@dai-as.dk> wrote in message
news:MPG.1ca2189e60646cd59896c7@news.dataaccess.co m...
> Peter,
>
> The problem is that I do not know if a report is "lengthy" or not; it
> depends on the selection criteria.
>
> I had hoped that an "idle" timer was only trigging when the system was
> idle.
>
> Now I need to go thru all my code, and find all places to disable and
> enable the timer. I'd better make sure that there are not two ways out
> of an object, so that the program forgets to enable the timer again.
>
> Thank you.
>
> Henrik

Henrik Staun Poulsen
23-Mar-2005, 02:05 AM
Peter,

Yes, we use the report class, and that was how I solved the problem.
But I also knew there were other places. Now I just hope that I haven't
forgotten any.

Best regards

Henrik