Kbase 21570: ADM-ADM2. Setting The Drop-Down Combo-Box's Value and Screen-Value?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/17/2004 |
|
Status: Unverified
GOAL:
ADM-ADM2. Setting The Drop-Down Combo-Box's Value and Screen-Value?
GOAL:
How to set Drop-Down Combo-Box's Value and Screen-Value?
FACT(s) (Environment):
Progress 8.X
Progress 9.X
OpenEdge 10
CAUSE:
When you enter a value in a drop-down style combo-box, it does not set the Screen-Value to the newly entered value or add this new value to the combo-box's selection-list. Messaging the values returns a ? or blank.
FIX:
By creating a simple ON LEAVE trigger and adding the following code, the value will now be available in the Combo-Box's selection list as well as setting its Screen-Value.
Do:
combo-box-1:ADD-FIRST(combo-box-1:SCREEN-VALUE).
combo-box-1 = combo-box-1:SCREEN-VALUE.
END.