Consultor Eletrônico



Kbase P16058: How to make PcProcName variable in ADM2 constructObject?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   19/03/2003
Status: Unverified

GOAL:

How to make PcProcName variable in ADM2 constructObject?

FIX:

Make an override of constructObject, and modify PcProcName before the RUN SUPER. You might call a function in another procedure with DYNAMIC-FUNCTION() to get the SmartObject name from another external procedure.

This technique should be used when adding new instances of Smart Object dynamically.  When the instance is on the container at design time, then using the parameterize as variable feature is more appropriate => see Progress ADM2 Guide, Advanced ADM Topics chapter => "Parameterizing SmartObject Instances as variable".