Consultor Eletrônico



Kbase P156355: Visual Designer unable to locate elements that exist in class
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/23/2009
Status: Unverified

SYMPTOM(s):

Visual Designer unable to locate elements that exist in class

Visual Designer cannot open form containing ABL inherited control.

Visual Designer displays the following message when attempting to open the form:

Visual Designer cannot load this class
Line nn: Unable to locate element <member name> in type <fully qualified class name>

FACT(s) (Environment):

Member exists in class.
No error when control class is compiled in Architect editor.
No error when form class is compiled in Architect editor.
No error when form is run.
Control class source code file is located in a linked folder which is part of a different project.
Control class member mentioned in the Visual Designer message did not exist in the original version of the class.
Windows
OpenEdge 10.2A

CAUSE:

Two .r files exist for the control, one in each project. One is from an earlier build when the newly added member was not part of the control. Visual designer is accessing the older .r file. It displays the error message when it finds a reference to the newly added control member in the form class, but cannot find that member in the copy of the control class that it is using.

FIX:

Correct the project configuration so that r-code for any particular class is only created in one location.