Kbase P105107: 4GL generator does not handle custom attributes correctly
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  14/06/2005 |
|
Status: Unverified
FACT(s) (Environment):
Dynamics
Dynamics 2.1B
OpenEdge 10.0B
SYMPTOM(s):
4GL generator does not handle custom attributes correctly
Custom attributes defined in repository via Attribute Control
Attribute has override type None
No supporting get/set functions defined for custom attribute.
CAUSE:
The 4GL Generator will generate code to set the custom property based on the {set} pseudo-syntax.
If the custom property is not defined in the appropriate *propcustom.i or if the object is generated for Thin Rendering, this will revert to calling get/set functions.
FIX:
There are two ways to solve this issue:
If Thin Rendering is not required:
- Add the property to the appropriate *propcustom.i
- Make sure to generate the 4GL without the Use Thin Rendering option (switch it off on the Options tab of the 4GL generator tool)
If Thin Rendering is required:
- Customize the object class, and include supporting get/set functions for the custom attribute in the appropriate *custom.p
Note the solutions are not mutually exclusive, so both can be implemented at the same time to cover all possible scenarios.