Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Too many search criteria? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Too many search criteria?" Watch "Too many search criteria?" New topic
Author

Too many search criteria?

Felix Erendi
Greenhorn

Joined: Apr 16, 2003
Posts: 11
I have extracted all the data fields dynamically
from the database and added all of them as searchable JLabel - JTextField pairs in the GUI. Do you think that I will get lower grades from the examinors because I have more search possibilities than stated in the assignment.
My way of doing it makes it easy to add fileds to the db and then they are automatically searchable without adding any coe at all.There are no possibility to miss spell the field names either.

I have also not implemented the "any" string. But in stead if a fields is left empty the wildcard search will take place. all empty will show all records in the db. What do you think?
/Felix
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

While I wouldn't say that is wrong.
However, they are pretty stiff about following the requirements. Meaning if you stray afar from the requirements, they will take points off.
If the requirements state that you must implement an "Any" type search then you should. Now if you can prove that your design is the "any" type, then they might be ok, but I cannot guarantee that, as much as guarantee that if you have the "any" choice in there and it works, you will not lose points.
The choice is always yours though.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Felix Erendi
Greenhorn

Joined: Apr 16, 2003
Posts: 11
Mark,
Since English is not my first language maby you can help me? Is this sentence so vagely written that I can interpret it not to use the input string "any" for my wildcard search implementation, or does it say that "any" is a requirement?
-------------------------------------------------
The user must be able to describe enter the string value "any" for the origin, destination, or both, so as to implement a wildcard-like feature.
-------------------------------------------------
/Felix
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

That's ok Felix. My english isn't the best either, and I grew up speaking it.
I meant to say that if the requirements state that you must implement "Any", then you must have a choice in your JComboBox that literally says "Any"
Mark
 
wood burning stoves
 
subject: Too many search criteria?
 
Similar Threads
Searching Criteria - GUI
fake date problem
NX:Contractor Search Requirement
Copy and past link problem
Using Java annotation for Marker Interface