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

Finding the db for the server mode

 
Dmitri Christo
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a doubt when looking for the db location in server mode. When the application starts in server mode, the user is presented with a simple gui, and has to determine the location of the db using a file chooser.

The possible issue here, I am not sure if it is an issue yet, is that everything works just fine when the user specifies the path (directory) where the db is located, but does not work properly when the user specifies the full path, plus the name of the db using the file chooser..

For example, the following, will start the server (finish registering the remote interface successfully):


..but the connection fails if the user selects the actual db file (using the file chooser) and attempts to start the server with


I have a partial list of the series of exceptions here:

I think this is because throughout the application the name of the db file is specified programmatically, and only the location/path/directory is needed... Would anyone say my suspicion is correct? or am I using the file chooser the wrong way?

Many thanks for the advice
 
Dmitri Christo
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried using


in order to have the user select only the directory, but then the actual file is removed completely from view, making it harder for the user to see where the file actually is.

Thanks for any help
 
Dmitri Christo
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
..actually I think this solved with
so the user can search for, find and select the db file, but the location field will be updated only with the parent directory of that file, not the file name itself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic