Consultor Eletrônico



Kbase P62640: CHOOSE Trigger of dynamic MENU-ITEM does not fire if you take too long to select.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

FACT(s) (Environment):

Progress 9.x

SYMPTOM(s):

CHOOSE Trigger of dynamic MENU-ITEM does not fire if you take too long to select.

Must click on the menu item in < 1 second for trigger to fire.

CAUSE:

Progress GUI client is not receiving notification from Windows that the menu item was selected when it processes a DDE notification.

FIX:

Define an internal procedure to perform the processing required on the CHOOSE event of the MENU-ITEM and PERSISTENT RUN that procedure in the TRIGGERS phrase of the CREATE MENU-ITEM statement:
CREATE MENU-ITEM whMenuItem
ASSIGN
PARENT = whSubMenu
LABEL = salesrep.repname
TRIGGERS:
ON CHOOSE PERSISTENT RUN DisplayQuota IN THIS-PROCEDURE.
END TRIGGERS.
PROCEDURE DisplayQuota:
FIND FIRST salesrep WHERE repname = SELF:LABEL.
DISPLAY salesrep WITH FRAME x.
END.