Kbase P98673: How to use GroupAssign SmartLinks?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/12/2004 |
|
Status: Unverified
GOAL:
How to use GroupAssign SmartLinks?
FACT(s) (Environment):
Windows
Progress 9.x
OpenEdge 10.x
FIX:
The following example, uses the Customer table in the Progress sample database, links various SmartDataViewers with GroupAssign SmartLinks so that the application can update a single customer record across multiple SmartDataViewers:
1. Create a SmartDataObject for the Customer table.
2. Create a SmartDataViewer for the Customer table that contains the following fields:
- CustNum
- Name
- Contact
- Phone
- Fax
- EmailAddress
Name this SmartDataViewer vcustcontact.w. This is the master SmartDataViewer.
3. Create a second SmartDataViewer for Customer table that contains the following fields:
- Address
- Address2
- City
- State
- PostalCode
- Country
Name this SmartDataViewer vcustaddress.w.
4. Create a SmartWindow and on it create a SmartFolder with two tabs, labeled Contact and Address.
5. Drop the SmartDataObject onto the window.
6. Drop the vcustcontact.w SmartDataViewer (the master SmartDataViewer) onto page 1 of the SmartWindow and link it to the SmartDataObject with Data and Update links.
7. Drop the vcustaddress.w SmartDataViewer onto page 2 of the SmartWindow and add SmartLinks as follows:
- A Data link from the SmartDataObject to this SmartDataViewer
- A GroupAssign link from the vcustcontact.w (master) SmartDataViewer to this SmartDataViewer.
8. Drop an Update SmartPanel onto page 0 of the window and link it to the vcustcontact.w (master) SmartDataViewer.
9. When this application is run, it can make updates to a single record through both SmartDataViewers. These updates are saved together, updating the database with all changes to a single customer record in one transaction.