Validation Module DBXREFPurpose:Search external database and display a Pick List Grid. Replace data once a selection from the Pick List Grid has been made. Usage:DBXREF("dbfname","alias","index",search value,"prompt","expression") -OR- DBXREF("dbfname","alias","index",search value,"prompt","~filename")
Field Replacement Expressions (FREs) control what data is copied from the matching record. If a single field is going to be updated, the FRE can be placed directly within the command in the Configurator. If multiple fields are going to be replaced, a text file containing all of the FREs (one per line) must be created first.
Multiple FREs can be stored in a file placed for convenience in the network Image-Master directory. Choose a name that follows the 8.3 naming convention and an extension of .TXT for ease of administration and technical support. Operation:The external database is searched by the specified index using the value provided by search value. A Pick List is always displayed with the selection bar highlighting the nearest match (which may be an exact match or not). Regardless, once a selection from the Pick List is made, the corresponding single FRE or multiple FRE is performed using the selected external database record chosen from the Pick List. The cursor is moved to the next field in the Data Entry Screen. If a Pick List is displayed, but is closed without a selection being made (by pressing [Escape]), then the Pick List is closed, no FRE is executed, the Data Entry Screen is left unchanged, and the cursor remains in the field being edited. Refer to the SDBLOOK example for more information on designing and creating the FRE expression or the FRE expression file. Related TopicValidation Modules Introduction
|