Originally posted by Mike Segal:
Hi Mark,
Thanks for the answer. Still the matter is not clear to me. Let's say we are in the "alone" mode. Database file can be located on the local host or on any other host in the network. In this case, do I need to provide an option (a check box, for example) so that a user could define local/remote location of the database? From my point of view this is unnecessary, but what is the meaning that they put in the assignment? :roll:
I think that the simplest solution would probably be be just to assume that in local mode you have a local copy of the database file and that if you need to open a file over the network that there should be a database server running on that machine.
Although as far as I can see (and I have never tested this), if you open up a file over the network in local mode using its network path this should work just fine without having to make any special allowance for it.
Originally posted by Mihai Radulescu:
Hi Mike & Mark
I also have this phrase in my specifications, so in my configuration dialog I have a two radio buttons one for local and one for remote, each of this buttons toggle the local/remote configuration panel.
So if the user starts in standalone mode the configuration dialogs pops up and it with the local button selected, at this point the user can still change the
operation mode to remote (and if the server it running it may get some results). The same logic if the user starts in remote mode.
Regards M.
[ January 04, 2007: Message edited by: Mihai Radulescu ]
I let the user start in either local or network mode only with no option to change. I had a custn JDialog for the properties that accepted the mode flag and showed either the local or network properties depending on how the app was started. Originally there was an option to let the user close a connection and then re-open either a local or network connection on the fly. However I eventually took it out as I felt it was making the GUI code unnescesary complex (I may have found a bug or two also

). Your solution is a nice feature however that is user friendly (and also more importantly also sticks to the spec).
Regards,
Mark.