Consultor Eletrônico



Kbase P14589: ADM2: How to pass values from a Header SDO/SDV to a Details
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   21/08/2003
Status: Unverified

GOAL:

ADM2: How to pass values from a Header SDO/SDV to a Details SmartDataViewer?

FIX:

Create a custom link between the Header SmartDataObject and the Detail SmartDataViewer, this will allow you to easily get the handle of the Header SDO within the Details SDV and run functions/procedures within the Header SDO to retrieve the information required.

Steps to achieve this:

1. Create a customer link between the Header SDO and the Details SDV, in this example the link was called MyLink.

2. On a Button within the Details SDV, place the following code:

DEFINE VARIABLE cObject AS CHARACTER NO-UNDO.
DEFINE VARIABLE hObject AS HANDLE NO-UNDO.

ASSIGN cObject = DYNAMIC-FUNCTION('linkHandles', 'MyLink-Source')
hObject = WIDGET-HANDLE(cObject).


ASSIGN CustNumFillin:SCREEN-VALUE =
DYNAMIC-FUNCTION('columnValue':U IN hObject, INPUT 'CustNum').