Consultor Eletrônico



Kbase P96974: Error: (4065) populating a LIST-ITEM-PAIRS SELECTION-LIST from database fields.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/29/2004
Status: Unverified

SYMPTOM(s):

**The <attribute> attribute on the <widget id> has invalid arguments. (4065)

The ADD-LAST attribute on the SELECTION-LIST SELECT-1 has invalid arguments. (4065)

Populating a LIST-ITEM-PAIRS SELECTION-LIST from two database fields by executing code similar to:
FOR EACH CUSTOMER NO-LOCK:
SELECT-1:ADD-LAST(Customer.NAME, STRING(CustNum)).
END.

CAUSE:

The data, like the sports2000.Customer.Name field, contains the comma character that causes a conflict because the comma is also the default delimiter of the SELECTION-LIST.

FIX:

Assign a new delimiter for the SELECTION-LIST:
SELECT-1:DELIMITER = '|'.
FOR EACH CUSTOMER NO-LOCK:
SELECT-1:ADD-LAST(Customer.NAME, STRING(CustNum)).
END.