Consultor Eletrônico



Kbase P32538: How to create a simple smart window? (Walk through)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/25/2003
Status: Unverified

GOAL:

How to create a simple smart window? (Walk through)

FACT(s) (Environment):

Windows

FACT(s) (Environment):

Progress 9.x

FIX:

For this simple walk through we will assume you have already created an SmartDataObject for your customer table, A SmartDataBrowser built upon the customer SDO, and a SmartDataViewer also built against the SDO.

1) Create a new smart window.
2) Click on the SDO icon and select your customer SDO.
3) Drop your SDO on your window.

4) Now click on the SmartDataViewer icon and choose your Customer Viewer.
5) Drop the SDV on your window.

Two messages will appear the first is;
Asking if you would like to create a data link from your SDO to your viewer This is how the viewer gets the current record information to display.
Click yes.
Next, it will ask if you would like to add an update link.
This is how your viewer will pass updated information back to the SDO.
Click yes.

6) Now click on the SmartDataBrowser icon on your pallet and choose your
customer browser.
7) Drop your SDB on your window.
The link advisor will appear again asking if you would like to create a data link from your SDO to your Browser. This will populate your Browser with data and help to navigate the current selected record. Click Yes and create this link.

8) Now you can run this window. Notice how the browser's Data link to the SDO changes the current record when you select different rows and reflects the change in the Viewer.