Kbase P14208: Trigger defined for a browse does not fire for one of its ce
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/18/2003 |
|
Status: Unverified
SYMPTOM(s):
Trigger defined for a browse does not fire for one of its cell or column
CAUSE:
Expected behavior. The trigger is defined for the browse widget itself and its enabled cells have to be considered at separate widgets.
FIX:
Define the trigger also on for the cells with the following:
ON ANY-KEY OF cusbrowse IN FRAME BROWSEFRAME
OR ANY-KEY OF CUS.Credit-Limit IN BROWSE cusbrowse DO:
END.
You might also use the dynamic way to sweep all the enabled colums (there are other ways but this one is safer):
DEFINE VARIABLE h AS HANDLE NO-UNDO.
DEFINE VARIABLE i AS INTEGER NO-UNDO.
DO i = 1 TO cusbrowse:NUM-COLUMNS:
h = cusbrowse:GET-BROWSE-COLUMN(i).
IF h:READ-ONLY THEN NEXT.
ON ANY-KEY OF h PERSISTENT RUN ApplyIt IN THIS-PROCEDURE.
END.
PROCEDURE ApplyIt:
APPLY "ANY-KEY" TO cusbrowse IN FRAME BROWSEFRAME.
END PROCEDURE.