Progress
Application Development
Environment — Getting Started


Building SmartDataObjects

In "Assembling the Order Tracking System," you assembled the main window of the SportsPro Order Tracking System using prefabricated SmartObject masters. In this chapter, the emphasis is on the application development process by showing you how to fabricate SmartObject masters from the standard templates installed with the product.

In this section, you use the SmartDataObject Wizard to create the SmartDataObject, dcust. This SmartDataObject (SDO) is one of the SmartObjects used in the main window of the Order Tracking System. SDOs define a set of records to fetch from a database. You cannot see a SDO in a running application. You can only see the information fetched by the SDO when it is displayed in a visualization object such as a SmartDataViewer (SDV) or a SmartDataBrowser (SDB).

In the Order Tracking System, the SDO, dcust, in the main window is used to find all rows in the Customer table that match the query entered in the Find Customer dialog box. The SDO also sends the customer record values, one at a time, to the SDV, vcust, and the SDO, dorder.

The following short procedure outlines the steps in building the SDO:

  1. Start the SmartDataObject Wizard.
  2. To review this procedure, see the "Starting the SmartDataObject Wizard" section.

  3. Define the query.
  4. To review this procedure, see the "Defining the Query" section.

  5. Define the fields.
  6. To review this procedure, see Step 6 in the "Defining the Query" section.

  7. Save the new SDO.
  8. To review this procedure, see the "Saving the New SmartDataObject" section.


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