Consultor Eletrônico



Kbase P100044: CSComboBox:VALUE property is not assigned the user input.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/13/2005
Status: Unverified

FACT(s) (Environment):

Progress 9.1E
OpenEdge 10.x

SYMPTOM(s):

CSComboBox:VALUE property is not assigned the user input.

CSComboBox:VALUE property is assigned the user input with earlier Progress versions.

In Progress earlier versions, the following steps would message the string typed by the user into the CSComboBox OCX:
1. Start The AppBuilder.
2. Create a new window.
3. Drop a CSComboBox OCX on the window.
4. Drop a BUTTON widget on the window with the following CHOOSE event trigger:
DO:
MESSAGE chCtrlFrame:CSComboBox:VALUE
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.
5. Save & Run the window.
6. Type something into the CSCpmboBox.
7. Click the Button to get the typed string messaged.

CAUSE:

CSComboBox was changed by its manufacturer.

FIX:

Define an OCX.NewItem trigger that explicitly assigns the user input to the CSComboBox:VALUE property:
DEFINE INPUT-OUTPUT PARAMETER p-ComboText AS CHARACTER NO-UNDO.
DEFINE INPUT-OUTPUT PARAMETER p-KeepFocus AS INTEGER NO-UNDO.
chCtrlFrame:CSComboBox:AddItem(p-ComboText).
chCtrlFrame:CSComboBox:VALUE = p-ComboText.
END PROCEDURE.