4.1.7 Interface: Drilling Down to a Single Record
When you are in a List Window, you can double-click a record to view and modify the data in that record. In the database world, we call this drilling down to the next level.:
When you are viewing a single record, you are viewing a STATIC Input Form. When you need to create or change an individual record, you will usually work with an Input Form. In STATIC most records open within their own window. This makes it easy to compare the contents and/or cut and paste between them. It also increases the amount of memory required by STATIC and the complexity of the underlying code!
Interface Objects in a Single-Record Window
When you are in single-record window, you might have several different interface objects available for your use. Each form is different; here is a list of the possible types of objects that you might see in a single-record window:
A field is a container for storing and retrieving a specific piece of information about a specific record. A field may contain date, numerical, alpha-numerical, or graphical information. The caption, which is usually above or to the left of the field, tells you what kind of information is stored there.
A Variable is a temporary storage container that the program uses to get or display information that will only be available while this record is being displayed. A variable might look like a field on the screen; however, a variable is not saved with your data. Its contents might have been derived from a field.
An included subtable is a list view that is contained within a single-record view. The included subtable may or may not be double-clickable, depending on the type of information, and depending on whether or not there are additional fields of information that are stored behind the list view.
A Button is an object that you push or click with the mouse, in order to initiate an action. Some buttons are plain rectangles, other buttons are graphical objects. Most buttons can also be tabbed to, and then activated from the keyboard.
Lookup data can be viewed directly while within a data entry area by clicking on a button such as the one below.
A combo box is a combination of a variable and a popup menu. You can type a variable in the box of a combo box, or you can choose from a popup menu that is associated with the combo box.
We tend to avoid Combo boxes in STATIC like the plague. Why? Because everybody enters their own information as they see fit without any controls or standards - a sure way of making the data collected on a single fields almost useless. When a variety of data needs to be collected for a field, we usually give you the option of a Drop down menu that you (the Administrator) can edit.
The one exception is within the Query area where this control is actually useful - you can define whatever you want or select a predefined item from a list.
A checkbox is a way to present and update boolean information (yes/no, true/false, 1/0, etc.)
Radio buttons usually come in groups, and radio buttons are mutually exclusive: when one is on the others are off.
A drop-down menu is so named because it drops down when you click on it.
We use drop down menus a lot in STATIC. They ensure data integrity as the user is forced to choose from a limited list of options and the usual problems of misspelling, extra characters and strange entries are avoided.
These allow you to save and exit the form. This can usually also be done from the close box. STATIC is intelligent enough to sense when a record has been changed - so if you Cancel a record it will ask you if you really want to do this as you will loose all your changes if you continue.
Some forms do not have any navigation buttons or only a subset of them. In that case the only way to signal that you want to save or cancel your changes is to click the close box of the window. A dialog box will then determine if the record changes are saved or not.
Most standard keyboard controls are supported for Saving and Cancelling records:
Save the record (unless the cursor is in a Text field that accepts Return)
|