Release 10.1A: OpenEdge Development:
AppBuilder

> ## 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 associate a database field with a data-capturing widget:

> 1. 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:

> 2. 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:

> 3. 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.
> 4. If you choose Database Field or Like, you can also choose whether to inherit some display characteristics from the data source:

> - Label — Creates a label for the widget based on the field name.
> - Format String — Ensures that the format of the widget is the same as that of the field.
> - Help String — Uses the help string associated with the database field.
> 5. Choose OK to dismiss the dialog box. Your widget is now associated with the storage unit (database field or local variable) you chose.

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