This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Friends, I was just going through my assignment to make sure I have covered everything and my assignment says the follwoing line "the program must allow the user to specify the location of the database, and it must also accept indication that local database is to be used..."
I am confused as to what does this mean? In my design when user tries to enter local mode it goes directly to the GUI that shows the list of records and if user tries to enter network mode it takes you to the screen which allows user to enter host name and port number, with button connect (which also starts the server). Is this enough for requirement Sun has given above, because I assumed that giving them text boxes for hostname and port number = specifying the location of database.
I chose to allow the user to specifiy an absolute local file path for the database when the application was started in local mode. You could create a local database location dialog box that is similar to your remote database location box.
I have heard that a lot of other developer's had used this method. I think it is safer and being on the safe side will help you relax a bit more while waiting for your score (like I am currently).
Joined: Oct 13, 2002
Thanks a lot. I will try to do the same so I can relax too from next week while waiting for my scores :-) Although my instruction says allow user to specify database location in networking mode only, but I will still implement the feature you mentioned.
I implemented it such a way that there were no default values. No .property files = no connection. But that didn't stop the GUI from running. From the GUI one could access a preferences screen which would allow you to reconfigure the IP/Port or database filename. You would then need to restart the GUI or Network server.
I went a little too far with my design. I allowed the user to specify a local database file, a database on the network, or to connect to a server. Also, the server admin is able to specify a database location, which the server uses to serve its clients. once the application is running, the client can switch between local and server mode at any time. The only restriction is that a client can view and query a single database at a time. I wanted to implement the ability to look at two different database, but what I did was already too much.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle