Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: Initial data to be displayed to the CSR

 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the CSR first runs the client application, what data are we supposed to display in the JTable for the CSR?
Assuming the assignment is simple and the database records are less, can we show the list of all valid records loaded from the database. Subsequently the records displayed in the JTable would anyway change, as a result of the CSR's search or booking action.
My idea is to retrieve all valid records from the server(database) and display it in the JTable. Since the architecture is 2 tier, the client can be a fat client, Isn't it?
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The specs have changed since the URLyBird days, but what is presented initially in the program wasn't part of them. So, I think it's completely up to you what is displayed when the program first runs. I left my JTable blank until a CSR did a search, but that was just a matter of preference. Keep in mind that (unless your spec suddenly says so), you don't get any extra credit or koodoes (spelling ?) for doing the extra work of the initial display. (I suppose at that point it would only be a few lines, but still.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers Nathan,
So leaving the JTable blank is also not a bad idea.
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vish,
Originally posted by Vish Kumar:
Cheers Nathan,
So leaving the JTable blank is also not a bad idea.

If you were the CSR, would you want tp see all the records in the database in the JTable when you started the application, or would you rather see an empty JTable?

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.

One of the requirements seems to imply that the user wants to be able to search the data for all the records. If so, then the user must want to see all the records. If the user might want to see all the records, why not show him all the records when he starts up the application. That way he doesn't have to do a search before he sees anything.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by George Marinkovich:
If you were the CSR, would you want to see all the records in the database in the JTable when you started the application, or would you rather see an empty JTable?

Of course, I would prefer to see all records and so would Nathan, I imagine . One of the challenges in this assignment is deciding the boundaries...or to what extent is one expected to go and implement the functionality as the supplied instructions leave a considerable amount of ambiguity. Perhaps, Nathan got away with it by documenting his decision and the instructor did give him full credit for GUI section.
As you imply, Sometimes it is good to stick to our common sense and if it is not too much of an effort, to go ahead and provide the feature.
Cheers George.....I have changed my mind to display all the initial records to the CSR on application start-up. It makes sense and also the effort involved is not too much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic