Sybase 2 Barcode Reader User Manual


 
CHAPTER 8 Displaying and Validating Data
DataWindow Designer User’s Guide 227
Validating data
When data is entered in the Database painter or in a DataWindow object,
DataWindow Designer evaluates the data against validation rules defined for
that column. If the data is valid, DataWindow Designer accepts the entry;
otherwise, DataWindow Designer displays an error message and does not
accept the entry.
For more information, see “About validation rules” on page 255.
About display formats
You can use display formats to customize the display of column data in a
DataWindow object. Display formats are masks in which certain characters
have special significance. For example, you can display currency values
preceded by a dollar sign, show dates with month names spelled out, and use a
special color for negative numbers. DataWindow Designer comes with many
predefined display formats. You can use them as is or define your own.
Here the
Phone, Salary, and Start Date columns use display formats so the data
is easier to interpret:
Display formats not used for data entry
When users tab to a column containing a display format, DataWindow
Designer removes the display format and displays the raw value for users to
edit.
If you want to provide formatting used for data entry, you need to specify edit
masks, as described in “The EditMask edit style” on page 246.