Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Do we need to filter the search result data?  RSS feed

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am confused on the instruction about search function.
Here is description in instruction:

UI:
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.

DB:
Returns an array of record numbers that match the specified
criteria. Field n in the database file is described by
criteria[n]. A null value in criteria[n] matches any field
value. A non-null value in criteria[n] matches any field
value that begins with criteria[n]. (For example, "Fred"
matches "Fred" or "Freddy".)

Does this mean I need to filter the search result data?
For example, user enter "Fred: on UI, find() method will reture any record begin with "Fred" (includes "Freddy").
But we need to filter those record which are not exactly "Fred", like "Freddy".
And only show the record "Fred" to user.

Is this correct?

Thanks for response.

Lee
 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hiz;

yes it is ok, but now the question is where you filter the result ? in the server side or in the client side ? document your decision carefully

regards.
Mohamed darim.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!