Hi Bruce
I am going to document three 'Lookup' cases where 'Double Click' on a row in the Lookup browse causes a problem (or not). All of the browses are just designed for 'selection' only i.e they have an in-line Select button and the Form tab/ Show Buttons sub tabs have no buttons included.
Case 1.
File = Pets
Browse = bPetsSelect
Key = byCustomerPet (two components), unique
Key = byPetName (one component)
Key = byPet (one component) unique, primary
Lookup returns the Pet Name
'Select' works but 'double click' on a row gives error message:
record not found: (-2) Error 30: Entry not found for key Cus:byCustomerNumber
Case 2.
File = Vets
Browse = sVet
Key = byNumber (one component), unique, primary
Key = byName (one component), unique
Lookup returns the Vet Name
'Select' works but 'double click' on a row gives error message:
record not found: (-2) Error 30: Entry not found for key Cus:byCustomerNumber
Case 3.
File = Rooms
Browse = bRoomsSelect
Key = byRoomNumber (one component), unique, primary
Key = byDescription (one component), unique
Lookup returns the Room Number
'Select' works. 'double click' on a row does not act as 'select' but no error message.
For Case 2 (sVet) I changed the byName key to be primary which seems to make it confer to the description in the 'Developing Web Applications with NetTalk' book viz:
"In this context the data is normalized if;
a) the lookup file (eg products) has a single component primary key and
b) the field from that key is used as the value in the related table (eg LineItems)"
but got the same error.
As regards Case 1 the file is keyed by Customer/Pet because I only want to display the Pets that belong to the originally selected Customer (and this works fine). But for the other two cases Customer is not involved in the Lookups - they are stand-alone.
Thanks for your help
Keith