Progress
ADM 2 Guide
Displaying and Browsing Data Sets
The SmartDataObject accesses data. SmartDataViewers and SmartDataBrowsers provide various display and browse capabilities for the data sets accessed by the SmartDataObjects to which they are linked.
- A SmartDataObject manages a database query on one or more tables that can be distributed across the AppServer; it defines and retrieves a set of database records.
- A SmartDataViewer views column values that it receives from another object, such as a SmartDataObject, that is accessing the database. The SmartDataObject and SmartDataViewer, together with a SmartPanel, can retrieve, display, navigate, and update records.
- A SmartDataBrowser allows an application user to browse column values that it receives from another object, such as a SmartDataObject, that is accessing the database. A SmartDataBrowser may also allow updates to data.
A SmartDataObject has its own database query. A SmartDataObject can pass a key value from one query object to a subordinate object so that the second object can open a query dependent on that key value; for example, Orders OF a particular Customer. For more information, see the "Initializing the Foreign Key Fields" section.
All database queries can be modified dynamically so that a given SmartDataObject can be used in various application contexts. For example, a SmartDataObject whose query definition is FOR EACH Order might be used in one application context to display and manage all Orders, but in another context, might be made into a dependent query object that receives a Cust–Num key from another Customer SmartDataObject and opens its query as FOR EACH Order WHERE Cust–Num = key value.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |