Consultor Eletrônico



Kbase P101679: Viewer gets hidden when going back to a parent page
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/18/2007
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.0B
Progress 9

SYMPTOM(s):

Viewer gets hidden when going back to a parent page

Viewer is hidden

Viewer had the focus before selecting another page

Going back to page that contains a smart frame that contains a viewer on its current page

More than one level of pages with a smart frames and a smart window

Thiscan also occur with an updatable smartBrowse

ADM2

OpenEdge 10.0B01

CAUSE:

This is a known issue being investigated by Development

FIX:

A work around is to implement the following code in an override of viewObject in the smartFrame:
RUN SUPER.

DEFINE VARIABLE ccontainerTarget AS CHARACTER NO-UNDO.
DEFINE VARIABLE hObject AS HANDLE NO-UNDO.
DEFINE VARIABLE iObject AS INTEGER NO-UNDO.
{get containerTarget ccontainerTarget}.

DO iObject = NUM-ENTRIES(ccontainerTarget) TO 1 BY -1:
hObject = WIDGET-HANDLE(ENTRY(iObject,ccontainerTarget)).
IF NOT VALID-HANDLE(hObject) THEN NEXT.

IF NOT DYNAMIC-FUNCTION('getObjectHidden':U IN hObject)
AND (DYNAMIC-FUNCTION('InstanceOf':U IN hObject, "smartDataViewer")
OR DYNAMIC-FUNCTION('InstanceOf':U IN hObject, "smartDataBrowser"))
THEN DO:
RUN hideObject IN hObject.
RUN viewObject IN hObject.
END.
END.
Note that the code could be implemented at the end of viewObject in adm2/container.p, so it would affect all the smartFrames