This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

NX: Initial data to be displayed to the CSR

 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cheers Nathan,
So leaving the JTable blank is also not a bad idea.
 
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic