4. Configuring Fields to use the Lookup and Capture Files
Back to Walkthrough
First, lets attach the ItemIDField and QtyField Screen Fields to the Capture File.
Check Write Data to the following file and select Capture, field: ItemID

Check Write Data to the following file and select Capture, field: QTY

Next, lets attach the ItemIDField and DescField Screen Fields to the ItemsLookup File.
Designate as the Match field for the lookup file: ItemsLookup, field: ItemID.
We want to make the program locate the correct Lookup record that matches the value of ItemIDField every time we leave the ItemIDField Screen Field.

Leave the Data section as is.
Instead, under Default Value, check Get default value from lookup file and select ItemsLookup, field: DESC

1 and 2 set up ItemIDField and QtyField to be saved to the Capture File as ItemID and QTY.
3 and 4 set up the lookup file to align to the first row where ItemID matches of ItemIDField. After the alignment, DescriptionField will use the value of the DESC column in that row as its default value.
Continue on to Step 5, and finish up your program with some Final Touches
Back to Walkthrough
Copyright © 2007, American Microsystems, Ltd.