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.

Setting up a predefined lookup on the Print Code field on the Customers screen

  1. Press Ctrl+G on the Print Code field.
  2. Note that it is Field number 8 (do not use location).
  3. Go to the `X screen.
  4. Enter the file you are working with (e.g. "C" for "Customer").
  5. Enter the field number as a 3-digit number (e.g. "008").
  6. In the Description enter "PrintCode" (this will show at the top of the lookup).
  7. Press F12 to save the lookup configuration.

Adding items to the list

  1. Enter "N" in the Suffix field.
  2. Enter "Newsletters" in the Description field.
  3. Press F12 to save the item.
  4. Enter "P" in the Suffix field.
  5. Enter "Payroll" in the Description field.
  6. 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.

Optional settings on the original record (C 008)

Required

  • 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.

Screen tab order

  • 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".
⚠️ **GitHub.com Fallback** ⚠️