Predefined lookups - abcsoftware/abc-docs GitHub Wiki
A predefined lookup shows you a predefined list of choices and (optionally) forces you to choose one of them.
- Press
Ctrl+G
on the Print Code field. - Note that it is Field number 8 (do not use location).
- Go to the
`X
screen. - Enter the file you are working with (e.g. "C" for "Customer").
- Enter the field number as a 3-digit number (e.g. "008").
- In the Description enter "PrintCode" (this will show at the top of the lookup).
- Press
F12
to save the lookup configuration.
- Enter "N" in the Suffix field.
- Enter "Newsletters" in the Description field.
- Press
F12
to save the item. - Enter "P" in the Suffix field.
- Enter "Payroll" in the Description field.
- Press
F12
to save the item.
There is now a lookup on the Print Code field of the Customers screen listing the two print codes you have added to the list.
- Blank = Not required
- R = Field must have something in it before the record can be saved.
- L = Field must be filled with an item from the list.
- O = Field is optional, but if it is filled it must be from the list.
- Used by the phone dialer to determine in what order to display the phone numbers it has found when you press
Ctrl+T
. - Can be set automatically by running
ScreenGoSub"190","40"
from the screen you want to set. This will cause the phone numbers found by the dialer to display in the order that you would come to them on the screen as you scroll through the fields. - If you would like home/cell numbers to appear at the top of the dialer list, simply set the screen tab order to "1" on record "C 027".