Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

URLyBird Search all records

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the assignment description 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."

So what I was doing is displaying all records if no criteria is enter by the user, but does it make sense to display records that are not in the 48 hours rule?
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I prefer not to modify search results, because even CRS take bookings only within 48 hours, they can advise customers about hotel rooms available after booking deadline. "48h rule" can be checked on-the-fly, for example it is possible to disable "Book" button when unavailable room is selected.

regards, Robert
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my search results I display 'bookable' rooms with a different background colour to those that are not available for booking at that time whether its because they are already booked or fall out of the 48 hour period.
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What if a customer calls and asks to find out if he has booked the room..

I think the search is necessary. Booking validation is entirely a different story.
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic