This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLYBird Search Requirement

 
Tim Fernandez
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In the URLy Bird specs, it 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 speficied by the user'

search all records - Does this mean when both fields are empty, clicking the search will display all results?Or when loading the page it should already display all the results and that's it?Which of the two is better to implement?

name and/or location fields - Does this mean there should be a flag for 'name AND location search' and a flag for 'name OR location search?


thanks in advance,
tim
 
Sam Codean
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,
I am also planning to give the SCJD Test. Please could you give me the specs so that i can get a understanding of how the questions are.
Thanks in advance
Sameer
 
Sam Codean
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops i am sorry i did not read the rules where it said we should not exchange the questions!!
I am sorry!!
I think i will wait till i get the Question for me ;-)
-Sameer
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11914
209
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,

When this issue has been discussed in the past, we have come to the conclusion that it is badly worded English (possibly deliberatly ). With that in mind, how you handle this can come down to your interpretation of that sentence.

My personal interpretation is:
  • It must allow the user to search the data for all records, or
  • It must allow the user to search the data for all records where the name field exactly match values speficied by the user, or
  • It must allow the user to search the data for all records where the name and location fields exactly match values speficied by the user, or
  • It must allow the user to search the data for all records where the location fields exactly match values speficied by the user

  • I believe this meets the requirements (and I didn't loose points in my GUI or Data classes for doing this), and makes my life much easier than trying to allow an "and/or" option on the client side (with it's associated re-evaluating of search results on the client side).

    Regards, Andrew
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic