DataWindow object examples

You can display the data in the format that will best present the data to your users.

Edit styles

If a column can take only a small number of values, you can have the data appear as radio buttons in a DataWindow object so users know what their choices are.

Figure 17-1: DataWindow example with radio buttons

The sample Data Window includes three radio buttons in a group box labeled Status. The On Leave radio button is selected. The Active and Terminated radio buttons are not selected.

Display formats

If a column displays phone numbers, salaries, or dates, you can specify the format appropriate to the data.

Figure 17-2: DataWindow example with formatted data

Shown is a sample Data Window entitled Employee Report, with a list of formatted phone numbers and salaries.

Validation rules

If a column can take numbers only in a specific range, you can specify a simple validation rule for the data, without writing any code, to make sure users enter valid data.

Enhancing DataWindow objects

If you want to enhance the presentation and manipulation of data in a DataWindow object, you can include computed fields, pictures, and graphs that are tied directly to the data retrieved by the object.