Consultor Eletrônico



Kbase P17814: New ADM class - The .w (template) cannot be droped onto a SmartWindow
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/28/2005
Status: Unverified

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

Creating a New ADM class

Using a single directory

The .w (template) cannot be dropped onto a SmartWindow

CAUSE:

This is happening because the template and the class (two files whose name
differ only by their extension) are generated into the same directory.

What happens is that the class file (.p) is recompiled into the same
directory with the template. When the palette tries to validate that the
file is valid to drop on a SmartWindow, it tries to run the template and
check it's ObjectVersion property. However the r-code for the class is in
the same directory as the template so it is executed and it happens not to
have the ObjectType property in it.

FIX:

There are 2 ways to get around this:

1) Store the template in a subdirectory of the class directory.

2) Make the name of the template different than the class.