**
**
NOTE:
**
SFUNCT and SKEY are enterable fields.
**SCOMPL and SERRMSG are display-only fields
Operator advisory and "positive feedback" messages are displayed in SCOMPL. Assuming that the operator entered: CUSADD (cont.)
37, and that there already was a customer number 37 on file then SCOMPL might contain the message "Duplicate Already on (cont.)
File". The operator is *never* able to key into the SCOMPL screen field.
##
Bottom 3 Rows of Screen
The last three Rows of the screen are also defined in a standard way in all MAGEC applications. They are defined as one (cont.)
large screen field known to the data processing personnel as SERRMSG. The operator can never key into the SERRMSG field (cont.)
on the screen.
SERRMSG stands for: "Screen Error Messages". Messages which appear here indicate entry errors in the screen data. MAGEC (cont.)
applications do not add or update the bad data to the database, they present it back to the operator with appropriate (cont.)
messages in the SERRMSG screen field.
The error messages are each up-to 40 characters long, there is room for up-to 6 such messages in SERRMSG at any one (cont.)
time. If the operator mis-enters a zip code on the screen (invalid format, non-numeric) then the error message might (cont.)
say "ERR123-Invalid ZIP code".
Every error message is assigned an error number (123, in the example above) which identifies it. If the operator (cont.)
mis-enters three zip codes on the same screen then the error message will only appear once since it would be pointless (cont.)
to repeat it. All three of the fields would be "highlighted" though to make the mis-entries stand out to the operator. (cont.)
Error numbers are not necessarily numeric, they may be alphanumeric -- they may contain the digits 0 through 9 and the (cont.)
letters A through Z.
#
Error Messages
##
Error Messages on Screen
All data which is keyed by the operator is edited and validated before it is used to update the database. A (cont.)
well-designed application should spare no effort in attempting to prevent wrong or bad data from ever getting onto the (cont.)
database. MAGEC applications pass the keyed data through three stages of editing:
1. MAGEC automatic editing
2. The developer's Custom editing
3. Business Rule editing
The automatic editing verifies that the keyed data is in the proper format, for instance: amount fields must be (cont.)
numeric, date fields must be a valid date, etc. It is also capable of verifying codes using a "table lookup feature", (cont.)
for instance: state abbreviations, product codes, etc. Automatic editing is associated with one screen field at a time, (cont.)
more complex cross-field compatibility editing (e.g. if Zipcode starts with "75" then Statecode must be "TX") is (cont.)
handled by Custom editing and Business Rules.
Custom editing is capable of verifying virtually anything that the automatic editing cannot, for instance: if the sales (cont.)
price entered is less than the suggested price on the product file then the salesman must be the owner of the company (cont.)
or this order is to be rejected. Custom editing is added to the application by the developer.
Business Rules are very much like Custom editing except that they are specified by the database administrator and are (cont.)
automatically added to the program without the developer having had to do anything. This is how the database (cont.)
administrator can ensure that only good data gets onto the files.
Regardless which type of editing issues an error message the message will be presented in the SERRMSG field and will (cont.)
have its error "number" (may be alphanumeric) prefixing it, as: "ERR7B5-Salesman is not the owner".
All Error messages are defined to MAGEC on its error message file. Error numbers starting with "9" (9AA thru 999) are (cont.)
standard MAGEC automatic editing messages, others are added by application developers and database administrators as (cont.)
needed. For every error message there are three items recorded:
Error Number three-character "number"
Message Text 33-character message
Description up-to four lines of explanation describing why
this message was issued and what to do to correct
The error number and text are what appears in SERRMSG. Whenever any error messages are displaying in SERRMSG then the (cont.)
operator may press the universal MAGEC "HELP" key (PF1) to request a display of the long descriptions for the error (cont.)
messages shown. The data which has been keyed onto the screen will not be lost or destroyed. MAGEC will display the (cont.)
Descriptions, which may continue for more than one screenful, and when done will return the operator's screen exactly (cont.)
as it was before. The error messages will still be there, the screen fields in error will still be highlighted, and the (cont.)
cursor will still be where it was. This may be done over and over without harming the operator's (cont.)
screen.
The SERRMSG field on the screen may never be entered into by the operator but is sometimes used to display messages (cont.)
other than error messages. In some functions it is not possible to receive an error message since the operator does not (cont.)
key any data and no database updating is involved. An example would be an inquiry or browse function which only (cont.)
displays data, but does not update any files. In some such cases the application might place instructions as to what (cont.)
may be done from here or what PF keys are defined in this application and their meanings. These messages are easily (cont.)
distinguishable from error messages.
##
Highlighting
When error messages appear on the screen in SERRMSG the screen fields which are in error will usually also be (cont.)
highlighted. This means that they will appear brighter (or blinking, or in a different color, depending upon which type (cont.)
of terminal) to make them stand out from other screen fields. Though there is a limit of six error messages on the (cont.)
screen at one time there is no limit to the number of screen fields which might be highlighted.
NOTE:
**
MAGEC will not display the same error message multiple times on one screen. If you have entered non-numeric data into (cont.)
three numeric screen fields then MAGEC will highlight all three fields, but will issue the message indicating (cont.)
"non-numeric data in numeric field" only one time. This is to avoid wasting valuable space which might be more useful (cont.)
for displaying other error messages, and so forth.
**
NOTE:
**
Version 2.4 of MAGEC added the capability for your company to dynamically set a parameter controlling which of three (cont.)
"extended highlighting" options is to be used to denote screen fields in error. The options apply only to 7-color (cont.)
terminals; they are *Blink, Reverse-Video,* and *Underline*. The parameter is set in MAGEC Lookup Table #243, which can (cont.)
be altered by certain authorized persons in your company. If you are using a 4-color terminal, or a monochrome (cont.)
terminal, this parameter will be ignored and have no effect.
MAGEC will automatically position the cursor onto the first screen field which is in error in order to assist the operator to quickly correct the errors.
The operator need not re-key data which was correctly entered, only what is incorrect. The entire screenful of data is (cont.)
re-edited every time it is transmitted so that if, in correcting one error, the operator creates a new one it will be (cont.)
detected and an error message for it will be presented. This scheme automatically catches all combinations of errors (cont.)
involving cross-field validations. For example, the State Abbreviation (i.e. TX, NY, etc.) may be perfectly valid in (cont.)
itself, but may not be valid in combination with the Zip Code (which itself may be valid, but not within that (cont.)
State).
#
HELP Key
##
The HELP Key
PF1
The PF1 key is universally defined by MAGEC as the HELP key. You may press it at any time to request appropriate (cont.)
documentation or explanation for whatever function you are currently doing. Some of the "help" features provided via (cont.)
the PF1 key are automatically produced by MAGEC, others require that the application developers enter concise and (cont.)
meaningful explanations and documentation as the application is being developed (or afterwards). The most satisfactory (cont.)
results occur when data processing and end-user personnel cooperate in the development of the applications *and* (cont.)
documentation.
The HELP key has one of four possible meanings depending upon the prevailing circumstances. It might:
Display error analysis (error description)
Display key entry analysis
Display online documentation for a function
Display the broadcast message
**ERROR ANALYSIS
** If you are attempting to do an updating function and have error messages displaying on the screen (in SERRMSG) then (cont.)
pressing the PF1 key will result in a display of the *error analysis*, explanations for the error messages being shown. (cont.)
If the error analysis is longer than one screenful then the operator will be instructed (in SCOMPL) "Press PF8 to page (cont.)
forward". PF3 will quit immediately and return to your application screen.
Pressing PF8 will "page forward" to the next screenful of error analysis. After the last of the error analysis has been (cont.)
displayed pressing PF3 will return to the application screen intact as it was before the HELP key was pressed. PF7 (F7, (cont.)
on a PC) will page backwards while in the help display.
**KEY ANALYSIS
** If there are not error messages on the screen but you have mis-entered the key value (in SKEY) for this function, (cont.)
then pressing the HELP key will result in a *key analysis* display. The key analysis is a single screenful of (cont.)
description and key format information with a sample shown to assist you in correctly entering the key. After the key (cont.)
analysis is displayed, pressing PF3 will return to the application screen intact as it was before the HELP key was (cont.)
pressed.
**FUNCTION-LEVEL HELP
** If there are not error messages and the key-value has not been mis-entered (or if it has not been entered at all), (cont.)
pressing the HELP key will result in a display of the *function-level documentation* which has been entered for this (cont.)
function code. If there is no documentation then the message "NO DOCUMENTATION ON FILE" will be displayed. The (cont.)
documentation for a given function often will continue for more than one screenful. The SCOMPL field at the top of the (cont.)
screen will instruct the operator "Press PF8 to page forward" until the end of the documentation has been reached. A (cont.)
key analysis is also presented at the end of the documentation. Pressing PF3 after the key analysis will return to the (cont.)
application screen intact as it was before the documentation display began.
Since some functions might have rather lengthy documentation on file and it is likely that the operator will have found (cont.)
what information was needed before reaching the end, provision has been made to take a "shortcut" back to the (cont.)
application screen. At any time during the documentation display pressing PF3 (F3, on a PC) will immediately return to (cont.)
the application screen.
Re-pressing the HELP (PF1) key while viewing the documentation or error analysis will restart the display from the beginning.
**BROADCAST MESSAGE****
** If there is a Broadcast message which MAGEC "thinks" this operator has not yet seen, then pressing the HELP key will (cont.)
display the broadcast message regardless of what other circumstances prevail. Once the message has been shown to this (cont.)
operator the meaning of the HELP key reverts to the standard described above.
Broadcast messages are used by the central computer facility to notify all users of some scheduled event, such as "the computer will be shut down at noon", etc.
##
Field-Level HELP Key
PF2
Another type of HELP key is also built into MAGEC applications. It is the *field-level HELP *key. It will let you call (cont.)
up documentation for a specific screen field by positioning the cursor to it (anywhere within the field is OK) and (cont.)
pressing PF2.
When you invoke field-level HELP as described above, MAGEC builds a screen of textual description for the selected (cont.)
screen field. The description is built from a combination of 1) the technical specifications for that field, and 2) the (cont.)
textual narrative explanation from the MAGEC dictionary for the database field associated with this screen field. If (cont.)
the database administrator has not entered any explanation then only the automatically-generated portion of the text (cont.)
can be displayed.
Pressing PF3 (F3, on a PC) will return to the application screen intact as it was before the field-level HELP key was pressed.
This field-level HELP facility was added to MAGEC in version 2.0 (September, 1988). If you attempt to use the (cont.)
Field-Level HELP key on a screen which was created prior to then you will probably receive a message saying: "No (cont.)
documentation found in the dictionary". You should notify your application developers and database administrators. (cont.)
Upgrading older screens so that they include this valuable feature is not overly difficult and worth the (cont.)
effort.
#
Menus
##
Menu Screens
A built-in automatic menu facility will produce, on demand, a three-level menu for any operator. Operators are never (cont.)
required to use menus to access any application screen or function, but they *may* use the menus to access any screen (cont.)
or function for which they are authorized.
You can bypass all menus by simply keying the function code and key value (into SFUNCT and SKEY) to go directly to any (cont.)
application for which you are authorized. The more experienced operators are inclined to use this technique most of the (cont.)
time since it is faster. Less experienced opererators often prefer using menus to get to the applications until they (cont.)
become more familiar with the system. Either method produces the same results, they are just alternate ways of getting (cont.)
to an application screen.
The menu facility produces three levels of menu screens. The first, higher level, menu lists the logical applications (cont.)
for which the operator has access authorization. An example of logical applications is:
01 General Ledger
02 Accounts Payable
et cetera
Different operators might see a different list because their authorizations are not the same. By positioning the cursor (cont.)
to the line (row) on which a logical application appears and pressing ENTER the operator can select the one desired. (cont.)
The result will be an intermediate (group) menu for the selected logical application for the requesting operator. It (cont.)
will show a list of function codes which are in the selected logical application and which this operator is authorized (cont.)
to do, for example:
CUS... Customer Maintenance (9 functions)
VENCHG Change a Vendor
INC... Vendor Maintenance (9 functions)
etc.
Since these menus are dynamically built at the time they are requested, and since they are driven by the central (cont.)
dictionary's security parameters, they are always accurate based upon the current security authorizations. When new (cont.)
applications are added, or operators' authorizations are changed, the menus immediately reflect the new parameters. (cont.)
There is no waiting for technical support personnel to update the menu screens.
##
How to Request a Menu
To get the main menu at any time you may key the function code
**MENU
into the SFUNCT screen field (top-left corner of screen). If you have set the *Special Keys Option* appropriately, you (cont.)
may also use the CLEAR (Esc key, on a PC) key or PA1 key (Ctrl-F1, on a PC) to get the same result. This session option (cont.)
is simply a way of equating a special function key to an often-used command in order to save the operator (cont.)
next: user03.md.txt