Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Interpretation of search specification  RSS feed

 
Johan Wallgren
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
Thanks a lot for all informative posts in this forum. They've been of great help for me.

I'm doing the Bodgitt and Scarper assignment and wonder if somenone could help me interpreting the UI specifications concerning the Search function.
The spec says:
"It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user."

Does that mean that I'll have to provide a functionality that allows the user to select whether the search parameters should be "name AND location" or "name OR location"? For example by adding a checkbox to the GUI.

Thanks in advance,
/johan
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some people have done it that way. I chose instead to interpret it as they can search by name or location or name and location. Basically if the user enered data into the name field only, then the program would search by name. If the location field was used, then it would search byb location. If bth were used, then the program would use both in its criteria.

What ever you decide, just be sure to document your choice and you will be fine.
 
Johan Wallgren
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for quick answer.
I'll go for the approach where the user has the possibility to make a choice between "and" and "or".
cheers
/johan
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!