Progress
AppBuilder
Developer’s Guide


Placing and Configuring a SmartDataField Instance

Each field in a SmartDataViewer represents a certain data type—an INTEGER, for example, or a DATE. The SmartDataField object you use as a replacement for such a field must represent the same type.

To use a SmartDataField in a SmartDataViewer, follow these steps:

  1. Choose File Open and select the SmartDataViewer master you intend to modify. Click OK. The master opens in a workspace window, as illustrated here:
  2. Click on the SmartDataField tool icon in the Object Palette:
  3. When the Choose dialog box opens, select the appropriate master and click OK.

    Alternatively, right-click on the SmartDataField tool icon in the Object Palette, then select an object from the menu that opens.

  4. Position your mouse cursor over the field you are replacing, and click to make the replacement. The SmartDataField representation appears in place of the original Fill–in:
  5. Add a static text label, if appropriate. A SmartDataField does not inherit the label of the field it replaces.
  6. AppBuilder supplies stubs for the enableField() and disableField() procedures. Open the Section Editor and add additional code to make those procedures work for the particular SmartDataField you added.

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