Kbase P58260: Trigger code not running a second time.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/02/2004 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.1D
SYMPTOM(s):
Trigger code behind button fires the first time then stops firing.
Dynamic Button is activated the first time it is invoked and becomes deactivated after.
CHANGE:
Migrating from character to GUI working out differences between procedural and event driven programming.
CAUSE:
The first time the button is invoked, the trigger executes and runs the trigger code which runs a procedure. The procedure goes into an UPDATE EDITING loop and doesn't return to the calling procedure so the trigger never finishes executing. Because the trigger never finishes executing, Progress rejects the invocation of the button a second time, because it is already active.
FIX:
Change the UPDATE EDITING loop to an ENABLE statement so the trigger will finish executing.
Example Code Snippet:
ENABLE fill1 WITH FRAME f1.
Then, make sure a WAIT-FOR statement is added to the calling procedure.
Example Code Snippet:
WAIT-FOR CLOSE OF CURRENT-WINDOW.