Progress
AppBuilder
Developer’s Guide
Database Field Selector
![]()
The button shown here is available in the Property Sheet dialog box, where relevant.
The Database Field Selector dialog box allows you to associate a database field with a data-capturing widget such as a Fill–in, Toggle Box, etc. By choosing appropriate widgets for such associations and adding the necessary additional supporting code, you can create layouts that are more subtly informative and helpful than those where you only use, for example, a Data Browser with its tabular display.
To make an association, follow these steps:
- Select the widget and choose Tools
Property Sheet. When the dialog box opens, choose the Database Field button (the browser with a field coming out). The Field Selector dialog box opens:
![]()
- Select, as appropriate, a database, a table, and a field to be associated with the widget. Choose OK to dismiss the dialog box. The Data Field Defaults dialog box immediately opens in its place:
![]()
- Choose the control type:
- Database Field — Default. Causes the widget to be associated with the database field you chose in Step 2.
- Local Variable — Causes the widget to be associated with a local variable.
- Like [chosen table.field] — The chosen table.field shown is the one you selected in Step 2. Choosing the option causes the widget to inherit any triggers defined for the database field. If there are no triggers to inherit, you can define those you need. But if the object inherits even one trigger, you cannot define additional ones.
- If you choose Database Field or Like, you can also choose whether to inherit some display characteristics from the data source:
- Choose OK to dismiss the dialog box. Your widget is now associated with the storage unit (database field or local variable) you chose.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |