Progress
ADM 2 Guide


SmartDataViewers

A SmartDataViewer is an ADM viewer-class SmartObject that displays database fields in a frame. A SmartDataViewer uses a SmartDataObject as a data source. A SmartDataViewer can be a type of SmartContainer; however, because it is a highly specialized SmartContainer, it is described separately in this section. For a general description of SmartContainers, see the "SmartContainers" section.

In addition to displaying database fields in a frame, a SmartDataViewer coordinates its display of records with other SmartObjects, typically SmartDataBrowsers and SmartDataObjects. SmartDataViewers can also coordinate with SmartPanels to modify records. SmartDataViewers typically use SmartDataObjects as data sources. For more information, see Data Management in the ADM."

A SmartDataViewer is intended to contain only basic objects, SmartDataObjects that will be used with SmartSelects, and/or SmartDataFields. (SmartSelects and SmartDataFields are described in the "SmartSelects" and "SmartDataFields" sections, respectively.) You typically use contained SmartDataFields to provide specially formatted displays of data in selected fields in the SmartDataViewer. For example, you might develop a SmartDataField that appears as a calendar and use it in a SmartDataViewer to display a date field.

Table 2–7 lists the SmartDataViewer files.

Table 2–7: SmartDataViewer Files
File Type
Filename
Template file
src/adm2/template/viewer.w
(standard SmartDataViewer template with Wizard)
Primary include file
src/adm2/viewer.i
ADM/Progress Advisor-supported SmartLinks
Data–Target
GroupAssign–Source
GroupAssign–Target
TableIO–Target
Update–Source
Instance property dialog box
src/adm2/support/visuald.w (source code)
gui/adm2/support/visuald.r (compiled code)


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