Consultor Eletrônico



Kbase P107056: Extended custom properties are not set in static code.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   01/08/2005
Status: Unverified

FACT(s) (Environment):

Dynamics

SYMPTOM(s):

Extended custom properties are not set in static code.

Static object property is blank.

Dynamics custom properties work fine when running from the repository, but when they are run from generated 4GL static code the values are blank.

4GL code generated with the Dynamics 4GL generator does not set custom extended properties.

CAUSE:

ConstructObject use get and set functions to manipulate the custom property with 4GL static code. When the code is run from the Repository these functions are not used, but with static code they are needed.

FIX:

Add get and set functions to the custom super procedure for the extended object. For example:

FUNCTION getmyCustomProp RETURNS CHARACTER:
&SCOPED-DEFINE xpmyCustomProp
DEFINE VARIABLE cMandExt AS CHARACTER NO-UNDO.
{get myCustomProp cMandExt}.
RETURN cMandExt.
&UNDEFINE xpmyCustomProp
END FUNCTION.

FUNCTION setmyCustomProp RETURNS LOGICAL:
&SCOPED-DEFINE xpmyCustomProp
{set myCustomProp cMandExt}.
RETURN TRUE.
&UNDEFINE xpmyCustomProp
END FUNCTION.