Progress
ADM 2 Guide
SmartDataBrowser Instance Properties
As the first row in Table 2–6 indicates, there are two types of SmartDataBrowsers: dynamic and static. Each has a different set of instance properties and, therefore, instance properties dialog box.
Figure 2–3 shows the instance property dialog box for a dynamic SmartDataBrowser.
Figure 2–3: Dynamic SmartDataBrowser Properties Dialog Box
![]()
You use the instance properties in this dialog box as follows:
- Edit displayed field list—Opens a list box that lists the fields in the SmartDataObject that is the SmartDataBrowser’s Data–Source, from which you can select the fields to be displayed in the dynamic SmartDataBrowser.
- Edit enabled field list—Opens a list box that lists the fields in the SmartDataObject that is the SmartDataBrowser’s Data–Source, from which you can select the fields to be enabled for update.
- Search Field—If a field is specified, the first line of the SmartDataBrowser’s frame is allocated to a fill-in field in which the application user can enter a value for a search field. The SmartDataObject query is automatically re-sorted by the search field, and on each keystroke entered, the browse is repositioned to the first row in which the specified field has a value greater than or equal to what has been typed so far.
- Enable—If checked (the default), enables the dynamic SmartDataBrowser for use.
- Layout—This property is disabled for dynamic SmartDataBrowsers.
- View—If checked (the default), makes the dynamic SmartDataBrowser visible.
- Down—Determines the number of rows to display in the dynamic SmartDataBrowser.
- If zero (the default), Progress calculates the number of rows displayed in the dynamic SmartDataBrowser based on the size of the browser. Note that this might result in the display of a partial row at the bottom of the browse. (You can adjust the height of the browse manually to compensate.)
- If a positive integer, Progress displays exactly this many rows in the browse. You cannot specify a decimal value, so the browse never displays a partial row.
The value of this property is assigned to the browse’s DOWN attribute.
- Calculate Width—Determines the width of the dynamic SmartDataBrowser.
- If unchecked (the default), the browse’s EXPANDABLE property is turned on, and Progress sets the width of the browse based on the width of the dynamic SmartDataBrowser. In this case, if the width of the browse columns is less than the width of the browse, the last column is expanded to fit the width of the browser.
- If checked, Progress calculates the exact width of the dynamic SmartDataBrowser’s columns, compares the result with the Max Width value, and uses the smaller of the two values as the width of the browse. Checking this box turns off the browse’s EXPANDABLE attribute.
- Max Width—Specifies the maximum width of the browse (the default is 80.00). If you check Calculate Width and the calculated width is greater than Max Width, Max Width is used instead. This field is enabled only when Calculate Width is checked.
The static SmartDataBrowser uses the visual SmartObject instance property dialog box, shown in Figure 2–4.
Figure 2–4: Static SmartDataBrowser Properties Dialog Box
![]()
You use the instance properties in this dialog box as follows:
NOTE: Do not uncheck (turn off) this property.- Enable—If checked (the default), enables the static SmartDataBrowser for use.
- Layout—This property is enabled for static SmartDataBrowsers when an alternate layout has been defined in the SmartDataBrowser master.
- View—If checked (the default), makes the static SmartDataBrowser visible.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |