Kbase P15404: Is there a way to refresh a browser every N minutes
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/23/2009 |
|
Status: Unverified
GOAL:
Is there a way to refresh a browser every N minutes
FACT(s) (Environment):
All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x
FIX:
One simple method to refresh your browser is that you use the WAIT-FOR with the PAUSE option. For example:
blo-main:
DO WHILE TRUE:
WAIT-FOR CLOSE OF THIS-PROCEDURE PAUSE 300.
IF LAST-EVENT:CODE = -1 THEN DO:
/* The WAIT-FOR timed out, let's refresh the query. */
OPEN QUERY q FOR EACH customer.
NEXT blo-main.
END.
/* The event the WAIT-FOR was waiting for has occurred, so exit this loop. */
LEAVE blo-main.
END.
This is rather simple, and it is portable across graphical and character user interface. Another possibility, that only works on Windows, is to add a PSTimer OCX to your Window, set it to tick every 5 minutes, and then add a trigger that reopens your query.