stanchat wrote: > I have been looking at the SearchManager in Android and wanted to know > if it is possible to do multi parameter searches. For instance lets > say you have a RESTful web services that can search on "LastName", > "FirstName", "BirthDate" and "Emal". > With this scenario I would like to present the user with 4 EditText > boxes and the can put search data in any of the Editboxes. > Any of these parameters can be passed in for the search and a zero or > more records will be returned. > > I would like to use the search UI provided by Android to handle this > but I am not sure how this is done.
The search UI provided by Android provides a single search field, and, IIRC, there is no option to tell it to offer more than that short of bypassing their UI outright. Here are some brainstormed ideas for how to deal with this: Option #1: Support just a single parameter in your single search field Option #2: Support a single field but use it in an OR-style query with your back-end provider (e.g., LastName=? OR FirstName=? OR BirthDate=?...) Option #3: Support a single field and cook up your own advanced query syntax, that if the user happens to enter, they get a fielded search Option #4: Support a single field for the integrated search using one of the above options and also provide an "advanced search" with multiple fields via a separate menu option or something (think searching Google via your browser's search box versus clicking on the Google "Advanced Search" link) Option #5: Skip the integrated search entirely and just use your advanced search -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

