Consultor Eletrônico



Kbase P24083: DO WITH FRAME spoils dynamic widgets
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/05/2004
Status: Unverified

FACT(s) (Environment):

Progress 8.x

FACT(s) (Environment):

Progress 9.x

SYMPTOM(s):

DO WITH FRAME spoils dynamic widgets

Using VIEW FRAME <frame-name> inside a DO WITH FRAME <frame-name> block will cause unexpected changes to the most of the dynamic widgets

Dynamic fill-in and dynamic text is loosing the screen-value

Dynamic widgets (except dynamic browse) are loosing the BGCOLOR and FGCOLOR attribute values

CAUSE:

Rather rare case that can occur when mixing dynamic and static
programming techniques. In this case, the frame is static and all its
contained widgets are dynamic.
In the solution notes I placed a procedure which reproduce the problem.

FIX:

Have a sensitive static widget before the VIEW FRAME, or do not use the
"WITH FRAME {&FRAME-NAME}" option in the DO statement, which is not
necessary by the way as long as your are working only with dynamic widgets.