Kbase P17138: How to make solution ID 21023 work with a DROP-DOWN-LIST COM
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/2/2003 |
|
Status: Unverified
GOAL:
How to make solution ID 21023 work with a DROP-DOWN-LIST COMBO-BOX?
FACT(s) (Environment):
Progress 9.x
CAUSE:
Solution ID 21023 works if the COMBO-BOX widget is defined with the DROP-DOWN option but fails when the COMBO-BOX widget is defined with the DROP-DOWN-LIST option.
FIX:
One way to make the above solution work when the COMBO-BOX widget is defined with the DROP-DOWN-LIST option is to modify the 4GL source code as follows:
1. Change the COMBO-BOX DROP-DOWN option to a DROP-DOWN-LIST option:
DEFINE VARIABLE combo1 AS CHAR
VIEW-AS COMBO-BOX
DROP-DOWN-LIST
INNER-LINES 4
SIZE 14 BY 1.
2. Define the following ENTRY event for the COMBO-BOX widget:
ON ENTRY OF combo1 IN FRAME f1
DO:
Combo1:VISIBLE IN FRAME f1 = TRUE.
END.
3. Change last line of code in the combo-placement Procedure to:
combo1:SCREEN-VALUE = STRING(order-line.item-num).