Consultor Eletrônico



Kbase P20256: Records from combo-box are not deleted when deleting records.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/15/2008
Status: Verified

FACT(s) (Environment):

Progress 9.1x
Windows

SYMPTOM(s):

Records from combo-box are not deleted when deleting records.

The combo-box value remains after deleting a record.

FIX:

To reflect a record's deletion inside a COMBO-BOX, set the LIST-ITEMS attribute to "" after deleting the record, then add back the values for each record in that table.


IF AVAILABLE order THEN
DO:
MESSAGE "order available" VIEW-AS ALERT-BOX.
DELETE order.
MESSAGE "order deleted" VIEW-AS ALERT-BOX.
END.

COMBO-BOX-1:LIST-ITEMS = "".
FOR EACH order.
COMBO-BOX-1:ADD-LAST(order.carrier).
END.