aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Search fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Search fields" Watch "Search fields" New topic
Author

Search fields

Anna Hays
Ranch Hand

Joined: Nov 09, 2003
Posts: 131
Hi,
I have read some threads that the search fields (for retrieving a list of contactors in B&S) can be a text field or drop down. I prefer drop down. I am wondering how can we get a list of locations that is available to search?? I wouldn't be a hardcoded list would it?
Thanks!
Jacques Bosch
Ranch Hand

Joined: Dec 18, 2003
Posts: 319
IMHO, a combo box is not needed. Text fields are sufficient.
But anyway, if you want to use one, you'll have to populate your location combo from the DB file. Build a cache of unique locations and fill your combo with that.
Too much unnecessary work I think. But that's just IMO.
J


Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Search fields