catbase logo

Field Properties

Selecting Field Properties for Your Data

When you add new fields to your database, you have a number of options from which you can choose for each field.

Add or Modify a Field

To add or modify a field:

  1. Click on the Setup button on the main window and choose Table and Field Setup from the popup menu.
  2. Select the table that you want to modify
  3. Click the New Field button to add a new field, or
  4. Double-click on an existing field name to modify its properties
  5. You'll then see the Field Properties dialogue:

field properties

Field Type

It's very important to choose the correct Field Type for the type of data you'll be storing in this field. The choices are:

A comparison between String and Text fields

Feature String Text
Maximum size 80 characters 32,000 characters
Indexable? Yes No
Sortable? Yes No
Can contain Return characters? No Yes
Can have Choice Lists attached? Yes No

Field Name

Enter a descriptive name for the field. Field names cannot contain certain characters, such as dashes and slashes.

Field Size

For String fields, change the size of the field (the number of characters it can contain) if you wish.

Indexed

Indexed fields are faster for searching and sorting. Not all field types can be indexed; Text and Picture fields cannot.

Is a Picture Name

This option is available for String and Text fields. If you designate a field as a Picture Name field, it will be treated a little differently:

Uppercase

Always force the data in this field to uppercase (useful for such data as postal codes). Only available for String and Text fields.

Lowercase

Always force the data in this field to all lowercase (useful for such data as email addresses). Only available for String and Text fields.

Unique

Only allow unique data in this field. A Unique field must be indexed. Not available for all field types.

Mandatory

If this option is selected, a value MUST be entered into the field for every record.

Choice List

This option is available only for String fields. A Choice List is a list of options available for selection for the field - for example, country names, salutations ("Mr", "Mrs", "Ms" etc.) Their purpose is to ensure data entry consistency: you cannot enter data directly into a Choice List field. When you select this option, the display changes a little:

Field properties with Choice List selected

Choose a Choice List from the popup menu ("Country" is selected in this example), or create a new list by clicking on the New List button. When a Choice List field is displayed onscreen, its name will be underlined and you cannot enter data directly into the field. When you click on the field, a popup menu appears, from which you make a choice. You can add new choices by selecting Add an Item from the bottom of the list. Choice Lists can also be managed by clicking on the Setup button on the main window and choosing Lists from the popup menu.

Remove Gremlins

Gremlins are bogus characters that can sneak into your data and cause all kinds of havoc. Most of them are non-printing characters that do not display at all on the screen, or appear as little boxes or bizarre characters. Their favourite ways of sneaking in are by accidentally typing an odd combination of keys, or by copying and pasting from emails or word processing documents. Select this option, and whenever the field is modified, the program will check for the presence of gremlins and delete any it finds. Available only for String and Text fields.

Check Spelling

Select this option to automatically invoke the spelling checker whenever the field is modified. You can specify the spelling checker language in System Preferences (under the Admin menu on the main window). The languages to choose form are English, French, German, and Spanish.

Locked

Designate a field as Locked and, once a new record has been saved, this field cannot be edited unless the user has Management access (access levels are set in the Users table - choose Users from the Admin menu on the main window).

Include in Search Menu

If this is a field that you'll want to search on quite frequently (such as a name or perhaps phone number), select this option. The field will then appear as an option in the Search on: popup menu in the Search Dialogue Window.

Include in Sort menu

If this is a field that you'll want to sort on quite frequently, select this option. The field will then appear as an option in the Sort on: popup menu in the Search Dialogue Window.

Run a Script When Modified

Scripts can be written to perform all kinds of useful jobs from simple functions such as calculating tax, to complex features such as sending an email or a letter. Contact us for more information about scripts.

Field Info

Finally, there's a text box at the bottom of the window. For fields that are used by the system - such as the Enter and Modify dates, a comment will be shown, and this cannot be modified. For all other fields, you can enter a comment here to remind yourself what the field is to be used for.

What's Next?

About Us | Site Map | Privacy Policy | Contact Us | ©2007 CatBase Software Ltd.