Release 10.1A: OpenEdge Getting Started:
Progress OpenEdge Studio

> ## SmartDataObject module

> One of the SmartObjects that OpenEdge 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 4GL objects.

> | To launch this module, choose the SmartDataObject button on the SportsPro main window. The Item Maintenance dialog box appears:

> The SDO in this module queries the database and sends the records to a SDB and a SDV. The SDB and SDV 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 filename | Object type | Function
> --- | --- | ---
> `wmntitem.w` | SmartWindow | Serves as a container for the other objects in the module.
> `ditem` | SDO | 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` | SDB | Enables the user to select an item record.
> lcategory1 | Combo-box | Filters the items shown in `bitem` to those matching the selected category.
> `vitem` | SDV | 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 SDOs, see the chapter on SmartObjects in the OpenEdge Development: ADM and SmartObjects .

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