Consultor Eletrônico



Kbase P35514: Link widget of a dynamic lookup showing first character of the database field value when is VIEWed-A
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   03/11/2005
Status: Unverified

FACT(s) (Environment):

Dynamics 2.0a

SYMPTOM(s):

Link widget of a dynamic lookup showing first character of the database field value when is VIEWed-AS TEXT.

The format of a widget associated to a database character field is set to display only one character, i.e. x(1)

Dynamics 2.0A02

CAUSE:

The format of the linked widget is set to X(1) even if in the repository is large enough to display the data

CAUSE:

Bug# 20030808-043

FIX:

Upgrade to Dynamics 2.1A or OpenEdge 10.0A.
As a workaround, add a data logic procedure to your dynamic viewer and create initializeObject with the following code:
/* datalogic procedure for dyn viewer */
PROCEDURE initializeObject :
RUN SUPER. /* this will be the default initializeObject of the viewer */

DEF VAR vh AS HANDLE NO-UNDO.
vh = DYNAMIC-FUNCTION( 'widgetHandle' IN TARGET-PROCDURE, "fiState" ).

IF VALID-HANDLE( vh ) THEN DO:
MESSAGE vh:FORMAT.
ASSIGN vh:FORMAT = "X(20)".
RUN displayRecord IN TARGET-PROCDURE.
END.
END PROCEDURE.