Hi ranchers,
the user needs to
1.do a search before booking any flight.
2. select row and say book
3.provide the required seats
4. refresh the data after a successful book
my query is:-
1. does the refresh at step 4. needs to be refreshed with all the flights data or only the refresh of whatever record the user is shown for booking.
for example,
1. the user selects the carrier='SpeedyAir'
2. user recieves 4 records
3. user selects the first record and say book.
4. controller dispatches to the Model
5. on succesful booking, Model says populate the View and sens all data (Observable-Observer)
6. does the view needs to populate a)only the bookable data(for the current search), shown to the user or b)does it populate all the flight information(24 records)
option b looks sooooo silly , even then, like to confirm from you.
Moral of the story: - does the View needs to maintain the same records even after a successful booking, but updated with the booked data and not all records!
as i was saying , if there is only one record shown for booking, after a search and the user gets 24 records on successful booking, it looks silly (atleast i think so
).
statement:-
so if n is the number of records shown for booking , then after booking the same n records should be displayed.
approach 1: the same n records shown for booking will be shown after booking, but only the booked record will be updated.
approach 2: the same n records shown for booking will be shown after booking, but all the records shown for booking will be updated.
i like approach 2. there is a "Good" chance that the user may want to book any of the remaining records shown to him and it is good to get it updated tooo.
kindly help in with your comments!!!