Kbase P22261: How to add triggers to a dynamic browser?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Verified
GOAL:
How to add triggers to a dynamic browser?
GOAL:
How to add a trigger to a dynamic browse widget?
FIX:
Option #1
Using the CREATE statement at the time of the browse creation:
CREATE BROWSE brHandle IN WIDGET-POOL "dynBuff"
ASSIGN X = 15
Y = 20
WIDTH = 62
DOWN = 10
QUERY = qrHandle
FRAME = FRAME xx:HANDLE
READ-ONLY = FALSE
SENSITIVE = TRUE
FONT = 6
TRIGGERS:
ON VALUE-CHANGED DO:
MESSAGE "VALUE-CHANGED trigger" VIEW-AS ALERT-BOX INFORMATION.
END.
END TRIGGERS.
Option #2
Using the browse handle after the browse creation:
ON 'mouse-select-click':U OF brHandle PERSISTENT RUN MyProc IN THIS-PROCEDURE.
PROCEDURE MyProc:
MESSAGE "MOUSE-SELECT-CLICK trigger".
END.