Consultor Eletrônico



Kbase P132490: DynSDB fails to display multiple line browse columns at runtime
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/27/2009
Status: Verified

SYMPTOM(s):

DynSDB fails to display multiple line browse columns at runtime

Designing Dynamic SmartDataBrowser

"!" character is used in the browse widget definition to split the labels on several lines.

In design mode DynSDB correctly shows column labels split over multiple lines

Running container which contains DynSDB

DynSDB shows exclamation marks in column label text

Column labels are not split over multiple lines

FACT(s) (Environment):

OpenEdge 10.1C
Dynamics
Windows

CHANGE:

Upgraded from earlier release to OpenEdge 10.1C

CAUSE:

Bug# OE00170747

CAUSE:

This is an issue in the ABL.
It became visible within Dynamics due to code changes inteded to optimize performance of container initialization.

FIX:

Workaround:

In rydynbrowb.w -> initializeObject

Add the following after the RUN SUPER statement:

/* start code */
DEFINE VARIABLE hColumn AS HANDLE NO-UNDO.
DEFINE VARIABLE iPixels AS INTEGER NO-UNDO.

hColumn = BROWSE {&BROWSE-NAME}:FIRST-COLUMN.

DO WHILE VALID-HANDLE(hColumn):
iPixels = hColumn:WIDTH-PIXELS.
hColumn:LABEL = hColumn:LABEL.
hColumn:WIDTH-PIXELS = iPixels.
hColumn = hColumn:NEXT-COLUMN.
END.
/* end code */


After making the changes, recompile and redeploy rydynbrowb.w and rythinbrowb.w.

If the static code generator is used (Administration -> Deployment -> 4GL Generator), the code above also must be added in the temdynbrow template (ry\tem\temdynbrow.p).