I have a model hierarchy that looks something like this:
Office
|
+-- Person
That is, every Office has multiple Person.
I want to allow a user to select a Person using an autocomplete text input field (using jQuery UI Autocomplete). In this text input field, I allow the user to type text, which is matched server-side against the last name, first name, and login of the Person to find matches to suggest to the user while he/she is typing.
Recently I ran into the problem where sometimes users only know limited info, like the Office name and the first name of the Person. They can't simply type "John" into the autocomplete field, as it will match hundreds of "John"s, and they have to scroll through all of these, searching for the one in the right Office.
My question is, what's the best way to allow users to search for a Person using criteria from both Office and Person?
I'd prefer to keep the UI as sleek and minimal as possible, so I'm trying to stay away from multiple fields, overlayed lookup popups, and things of that nature.