Hi,
I've just started working with Xataface a few months ago and I'm impressed, but I'm running into a challenge trying to figure out if I can do what I'd like to do. Here's an example of what I'm trying to accomplish.
I've got one table, call it stafflist. It has fields such as:
ID Number
First Name
Last name
Phone Number
Address
I've got another table called Schedule, it has
Event ID
Date
Start time
End time
Staff ID
First Name
Last Name
Phone Number
I'd like the Staff ID field in the Schedule table to be a numerical field that can be typed. If someone enters an ID that exists in the stafflist table's ID field and hits tab (or clicks on an icon beside that field) I'd like it to auto-populate the remaining 3 fields with the first name, last name, and phone number, pulling the info from the stafflist table. If that ID does not exist in the stafflist table (or is left blank) then the person entering data into the Schedule table can type out the rest of the information.
I know this type of relationship can be done with pull-down menus and such, but a pull-down menu does not offer the option of typing an answer that does not exist in the pull down menu. Also, if I have a huge list of people in the stafflist table (let's say there are 500 individual numbers / names in there for example) I would not want to use a pull-down to show that - I'd rather just manually have the ability to type in the number, hit tab or click an icon, and have the rest auto-populate and display on the screen before the record gets saved.
Is this possible?
Thanks in advance,
Lorne