Consultor Eletrônico



Kbase P141530: ATTACH-DATA-SOURCE fails to map fields with whitespace between them
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   19/02/2009
Status: Unverified

SYMPTOM(s):

ATTACH-DATA-SOURCE fails to map fields with whitespace between them

Pair with <member> failed to have a member in each table. (9034)

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.x
OpenEdge Category: Language (4GL/ABL)

CAUSE:

The code in question had whitespace between fields in the field pairs list and this caused the field names to be read with the whitespace as part of the name. e.g.
hBuffer:ATTACH-DATA-SOURCE(hDataSource,
"field_1,field1,
field_2,field2,
field_3,field3").

FIX:

Concatenate the field pairs list into a string without the extra whitespace. e.g.
hBuffer:ATTACH-DATA-SOURCE(hDataSource,
"field_1,field1" +
"field_2,field2," +
"field_3,field3").