Progress
Application Development
Environment — Getting Started


SmartDataObject Module

One of the SmartObjects that Progress uses to support distributed applications is the SmartDataObject (SDO). The SDO manages the query, validation, and transaction logic in one object. One of its important features is that it can run locally, or be split between the client and AppServer in a distributed environment. Separating user interface from business logic is one of the keys to creating distributable applications. The SDO also provides an open interface that can function in an Open 4GL environment with non-Progress objects.

Choose the SmartDataObject button on the SportsPro main window to launch this module:

The SDO in this module queries the database and sends the records to a SmartDataBrowser and a SmartDataViewer. The SmartDataBrowser and SmartDataViewer are thin objects. They display data and accept changes to fields, but do not contain data update or validation logic. The SDO carries out the update and validation tasks on the server side.

Table 2–7 describes the major objects used in the SmartDataObject module.

Table 2–7: Components Of the SmartDataObject Module
Object Or File Name
Object Type
Function
wmntitem.w
SmartWindow
Serves as a container for the other objects in the module.
ditem
SmartDataObject
Queries the Item table to retrieve item records.
getcategory.p
Procedure file
Runs during the initializeObject internal procedure to populate the seldspflds selection list.
bitem
SmartDataBrowser
Enables the user to select an item record.
lcategory1
Combo-box
Filters the items shown in bitem to those matching the selected category.
vitem
SmartDataViewer
Displays detailed information for the item currently selected in bitem.
pnavico
SmartPanel
(navigation)
Controls navigation for the result set from ditem.
pupdsav
SmartPanel
(update)
Controls record update functions on the result set from ditem.

NOTE: The SmartDataObject module also runs when you choose the View Item Maintenance menu option in the SportsPro Order Tracking System.

For more information on SmartDataObjects, see the chapter on SmartObjects in the Progress ADM 2 Guide .


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095