ON GO event fired once only ??????

Fugey00

New Member
Hi to everyone!

Got 2 widgets in the frame X.
I would like to validate on leave of each widget or on GO of frame X.

I got a problem understanding this code:

ON LEAVE of Widget1 or GO of Frame X DO:
some validation.
END.

ON LEAVE of Widget2 or GO of Frmae X DO:
some validation.
END.

Why does Progress fires only one of the trigger when on GO is fired and not both ???? :(

Thank's
 

schaapie

Member
I don't know why, that's just the way it works, only one trigger (per procedure?) per event.

Solve it by making 3 triggers and 2 internal procedures:
ON LEAVE of Widget1 DO:
run ip_validation1.
END.

ON LEAVE of Widget2 DO:
run ip_validation2.
END.

ON GO of Frame X DO:
run ip_validation1.
run ip_validation2.
END.
 

Fugey00

New Member
Well, that could be interesting if progress don't execute the leave trigger first. In that case it does the validation twice, On the leave and go event !

And to be sure not to continue you have to set some variable or error-status:error to true and trap it at the end of the ON GO to return no-apply.

There is no mecanics that progress uses to propagate the no-apply up the chaine of event triggered like they do in delphi for exemple!:confused:

thank's
 
Top