Consultor Eletrônico



Kbase P15868: How can column values be retrieved from a secondary SmartDat
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   28/01/2003
Status: Unverified

GOAL:

How can column values be retrieved from a secondary SmartDataObject?

FACT(s) (Environment):

Progress 9.x

FIX:

Column values can be retrieved from a secondary (non-related) SmartDataObject by doing the following:

1) Create a link between the source object and the secondary SmartDataObject.  This link can be called any name, however, for our purposes it will be called 'SecondarySDO'.

2) Insert code similar to the following at the point where you want to retrieve column values from the secondary SmartDataObject:

DEFINE VARIABLE hSecondary AS HANDLE    NO-UNDO.
DEFINE VARIABLE cSecondary AS CHARACTER NO-UNDO.
DEFINE VARIABLE cData      AS CHARACTER NO-UNDO.

ASSIGN cSecondary = DYNAMIC-FUNCTION('linkHandles', 'SecondarySDO-Target')
      hSecondary = WIDGET-HANDLE(cSecondary)
      cData      = DYNAMIC-FUNCTION('colValues' IN hSecondary, '<Comma Delimited List of Fields').