• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Too many search criteria?

 
Felix Erendi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Felix Erendi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic