Kbase 18640: How To Use One SmartPanel (Update) To Update Multiple Tables
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Unverified
GOAL:
How to use one SmartPanel(Update) to Update Multiple Tables
FACT(s) (Environment):
Progress 9.0A
Progress ADM2
FIX:
The automatic Link Activation/De-Activation that existed in Version 8 does not exist anymore in Version 9.0A. This Feature has being added to Version 9.0B.
In Version 8 you could use one Smart Update Panel for multiple tables on multiple pages. This was possible through the automatic activation and de-activation of links on ChangePage.
In Version 9.0A you are required to code this link activation/de-activation or use multiple instances of the smart update panel to achieve this behaviour.
Version 8.3A -- Create a program in version 8.3A with the following steps. This is how it used to work:
Smart Window contains...
Page 0.
Smart Update Panel.
SmartFolder.
Page 1.
SmartBrowser(Customer).
SmartViewer(Customer)(Record Link from SB(Customer)
TableIO Link from (SmartUpdatePanel)).
Page 2.
SmartBrowser(Order)(Record Link from SB(Customer)).
SmartViewer(Order)(Record Link from SB(Order) TableIO Link
from (SmartUpdatePanel) Group-Assign Link
from SV(Customer)).
Now Update a record on either page and press save. This works fine.
Version 9.0A -- Now create the following program in V9.0A.
Smart Window Contains...
Page 0.
Update SmartPanel(Update).
SmartFolder
Page 1.
SmartDataObject(Customer)(Update Link from SDV(Customer)).
SmartDataBrowser(Customer)(Data Link from SDO(Customer)).
SmartDataViewer(Customer)(Data Link from SDO(Customer)
TableIO Link from (SmartUpdatePanel)).
Page 2.
SmartDataObject(Orders)(Data Link from SDO(Customer)
Update Link from SDV(Orders)).
SmartDataBrowser(Orders)(Data Link from SDO(Orders)).
SmartDataViewer(Orders)(Data Link from SDO(Orders)
TableIO Link from (SmartUpdatePanel)).
Now, when you attempt to save a changed record on page 2, the changes are blanked out and the browser actually returns to the first record.