For browser based web application, I need the user to select a customer from thousands of available customers. The user may have the ID of the given customer or just the Full Name & Address. In case the ID is provided, then then user should directly select the customer with the given ID. In case ID is not available, then the name must be selected. I need to show the user the Fullname and Address of the customers combined. The user should not have to browse through those thousands of customers and at thee same time downloading those thousands of records every time is not feasible. So, what are the best user interface options for this? A working example would be a great help.
I've found a UI widget like this one (JS) to be helpful:
Some of the features that you would probably use:
If you're targeting HTML/JS, I'd recommend it highly, otherwise, look for something similar on your given platform. For a touch interface, you'd probably want something quite different, I'd take a look at how other apps are doing search (eg. Facebook searching for a person's name)
Are users supposed to know client IDs and names? If it is so I would suggest to use an autocomplete (Google like) displaying results at the bottom of the search box. You could also provide a checkbox to select "search by name" or "search by ID".