Progress
Application Development
Environment — Getting Started


Building SmartDataViewers

In this section, you use the SmartDataViewer Wizard to create the SDV, vcust2, one of the SDVs used in the Order Tracking System. The SmartDataViewer Wizard guides you through the SmartObjects creation by automatically launching the required dialog boxes in the correct sequence.

The SDV, vcust2, in the Order Tracking System illustrates the ease with which a SmartObject master can be reused in a single application or multiple applications. For example, there are two instances of vcust2 in the Order Tracking System, and although the two instances are based on the same SmartObject master, they function differently.

The Find Customer window, wfndcust, is a child of the main window of the Order Tracking System. The Find Customer window includes a child window, the Display Customer window, wdspcust. In the Display Customer window, the SDV, vcust2, receives a customer record from the SDO, dcust, and displays certain fields from that record.

The Maintain Customer window, wmntcust, is a child of the main window of the Order Tracking System. In the Maintain Customer window, the instance of the SDV receives the same customer record from the SDO, dcust, as the instance of the SDV in the Find Customer window. However, instead of just displaying the fields, this instance of the SDV accepts changes to some of the displayed fields.

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

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

  3. Select a SDO.
  4. To review this procedure, see Step 4 in the "Starting the SmartDataViewer Wizard" section.

  5. Select the fields to display from the SDO.
  6. To review this procedure, see the "Selecting the Fields to Display" section.

  7. Arrange the fields in the design window.
  8. To review this procedure, see the "Arranging Fields In the SmartDataViewer" section.

  9. Add a SmartDataField to the Comments field.
  10. To review this procedure, see Step 3 in the "Arranging Fields In the SmartDataViewer" section.

  11. Modify field labels.
  12. To review this procedure, see the "Adding and Modifying Field Labels" section.

  13. Disable fields that should not be updatable.
  14. To review this procedure, see the "Disabling Fields" section.

  15. Save the new SDV.
  16. To review this procedure, see the "Saving the New SmartDataViewer" section.


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