Consultor Eletrônico



Kbase 18451: ADM2. Using a Pass-through Data Link with SmartDataObjects
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Verified

GOAL:

How to implement a pass-through data link between a SmartDataObject (SDO) in a
SmartWindow and a SmartDataViewer (SDV) in a child SmartWindow.

FACT(s) (Environment):

Progress ADM2
Progress 9.x

FIX:

1) Create a SmartDataObject for the customer table in the sports2000 sample database.

2) Create a SmartDataBrowser for the customer table using the SmartDataObject created in step #1 as its Data Source.

3) Drop the SmartDataObject and SmartDataBrowser onto a SmartWindow and link them with a Data link.

4) Create a SmartDataViewer for the customer table, using the SmartDataObject created in step #2 as its Data Source.

5) Create a second SmartWindow and drop the SmartDataViewer onto it.

6) Create a Data link in the second SmartWindow from THIS-PROCEDURE to the SmartDataViewer.

7) Drop the second SmartWindow onto page 1 of the first SmartWindow.

8) Using the SmartLink Editor, add a link from the SmartDataObject to the SmartContainer on page 1.

The advisor will display a message that the SmartContainer is not configured to be a target for Data. It will give two options, to continue and link them anyway or to cancel and go back to the SmartLink Editor. Choose to continue and link them anyway.

(This version 9.0A behavior with the advisor was logged as bug 19981215-012 and fixed in 9.0B.)

9) Create a button on the SmartWindow with the following code:

RUN selectPage (INPUT 1).

When the SmartWindow is run, the SmartDataObject in the first SmartWindow will be linked and provide data to the SmartDataViewer in the second SmartWindow. The user will be able to choose a record in the SmartDataBrowser and choose the button. This will bring up the second SmartWindow and the SmartDataViewer will display information from the record chosen in the SmartDataBrowser. The user will also be able to change the record selected in the browser and the record will change in the viewer as well.