I am successfully using @Picklist with @DbLookups in a form action button to allow the user to select a vendor name and have 4 other fields of vendor information populate automatically. All of the fields involved must be editable.
What I need is to have this occur in the field, Vendor Name. Can this be done with formula language? Can you use a picklist in a field? If not, what would be the equivalent of my formulas in LotusScript? Would it be used in the exiting event?
Here is the code for my @picklist. Thanks for all advice, Tammy
FIELD VenName := VenName;
@SetField(“VenName” ; @PickList([Custom]: [Single]; “”; “Vendor Import View”; “Vendor Information”;“Please select the name of the Vendor.”; 1));
FIELD VenContact := @DbLookup(“”:“NoCache”; “”: “”; “Vendor Import View”; VenName;2 );
FIELD VenPhone := @DbLookup(“”:“NoCache”; “”: “”; “Vendor Import View”; VenName;3 );
FIELD VenFax := @DbLookup(“”:“NoCache”; “”: “”; “Vendor Import View”; VenName;4 );
FIELD VenEmail := @DbLookup(“”:“NoCache”; “”: “”; “Vendor Import View”; VenName;5 );