aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird Search Fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird Search Fields" Watch "URLyBird Search Fields" New topic
Author

URLyBird Search Fields

Tim Anlauf
Greenhorn

Joined: Oct 11, 2006
Posts: 22
Hello,

I'am working on URLyBird v1.2.1 and not sure how to implement my search
At the moment I have only an AND search.

My sepc 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.


Do anyone think that an OR search is required here ?
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Hi,
And - both, Or - only one (from both).

Regards M.


SCJP, SCJD, SCWCD, OCPJBCD
Tim Anlauf
Greenhorn

Joined: Oct 11, 2006
Posts: 22
I provided two textfields.( name and location )

1.
if a user enters a string in both --> all records where name and location matches are returned

2.
enters only name --> all records where name mates are returned

3.
same as 2. only with field location

Is that right or must I have a checkbox ?

Tim
Mark Smyth
Ranch Hand

Joined: Feb 04, 2004
Posts: 288
Originally posted by Tim A...:
I provided two textfields.( name and location )

1.
if a user enters a string in both --> all records where name and location matches are returned

2.
enters only name --> all records where name mates are returned

3.
same as 2. only with field location

Is that right or must I have a checkbox ?

Tim


Hi Tim,
Think that is the right way to go about it, this is exactly the way I have implmented my search. I think it is another case of a poorly worded specification rather than a requirement to have and / or functionality on the name and location fields. Just make sure to mention exactly how it works in the userguide and choices text files.

Mark.


SCJP<br />SCJD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLyBird Search Fields