Progress
ADM 2 Guide
Dynamic and Static SmartDataBrowsers Compared
The primary difference between a dynamic SmartDataBrowser and a static SmartDataBrowser is that a given dynamic SmartDataBrowser can be configured to display and update the query of any SmartDataObject, while a static SmartDataBrowser is specific to a particular SmartDataObject:
- The dynamic SmartDataBrowser displays and updates records from a set of fields that are determined at run time, rather than at design time, as is the case for the static SmartDataBrowser. At run time, the ADM assigns the display and update fields based on the current values of the SmartDataBrowser’s DisplayedFields and EnabledFields instance properties and takes the query from the SmartDataObject to which the SmartDataBrowser is linked. This is why you can configure a dynamic SmartDataBrowser to display and update the query of any SmartDataObject.
Note that you can set the DisplayedFields and EnabledFields properties of the dynamic SmartDataBrowser at design time through the Instance Properties dialog box. If DisplayedFields and EnabledFields are unset at run time, their values are taken from the associated SmartDataObject’s DataColumns and UpdatableColumns properties. For details, see the "Setting the Dynamic SmartDataBrowser Field Properties" section.
Because a dynamic SmartDataBrowser instance’s display and update fields are not assigned until run time, it appears at design time as a browse widget with no columns.
- The static SmartDataBrowser displays and updates records from a set of fields that are assigned at design time, rather than at run time, as is the case for the dynamic SmartDataBrowser. At design time, the Wizard sets the display and update fields, as well as the data source’s query, based upon the SmartDataObject to which the SmartDataBrowser is linked. This is why a given static SmartDataBrowser is specific to a particular SmartDataObject.
Because a static SmartDataBrowser instance’s display and update fields are assigned at design time, it appears at design time as a browse widget with one column for each field selected in the Wizard.
Another significant difference is that you create masters for static SmartDataBrowsers but not for dynamic SmartDataBrowsers. This is because a dynamic SmartDataBrowser uses the SmartDataObject to which it is linked at run time and does not, therefore, need a master.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |