Consultor Eletrônico



Kbase P181775: Error 14837 occurs when attempting to embed an existing ABL window in an ABL .NET form
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/11/2011
Status: Unverified

SYMPTOM(s):

Error 14837 occurs when attempting to embed an existing ABL window in an ABL .NET form

The window may not be embedded because it has already been realized. (14837)

ABL window has been modified ready for embedding, e.g. "C-Win:HIDDEN = no." has been changed to "C-Win:HIDDEN = yes." and "RUN enable_UI." in the Main Block has been commented out

Original ABL window uses custom icon which causes AppBuilder to generate handler code

&IF '{&WINDOW-SYSTEM}' NE 'TTY' &THEN
IF NOT C-Win:LOAD-ICON("adeicon/admin%.ico":U) THEN
MESSAGE "Unable to load icon: adeicon/admin%.ico"
VIEW-AS ALERT-BOX WARNING BUTTONS OK.
&ENDIF

FACT(s) (Environment):

OpenEdge 10.2x
Windows

CAUSE:

Original ABL window uses LOAD-ICON which forces realization of the window. ABL LOAD-ICON is obsolete in a window that will be embedded in a .NET form as only content of default frame will be visible.

FIX:

Comment or remove the following AppBuilder-generated code from the Create Window section of the ABL window code:

&IF '{&WINDOW-SYSTEM}' NE 'TTY' &THEN
IF NOT C-Win:LOAD-ICON("adeicon/admin%.ico":U) THEN
MESSAGE "Unable to load icon: adeicon/admin%.ico"
VIEW-AS ALERT-BOX WARNING BUTTONS OK.
&ENDIF