my client needs the ability to connect to one of two (identical)
databases when the servoy application starts up.
in one case, the user is in the home office, on his/her
laptop, connected via lan to the company server. the
solution file will be stored on the laptop, along with a
copy of servoy.
in the second case, the user is out of the office (using the same laptop),
and will run the same servoy solution, but needs to
connect with an exact replicla of the company database
that is stored on the laptop.
how can i have servoy connect to one server or the other,
under program control, at startup time, without the user
having to go into Preferences/DB Servers and changing
the Database Server URL manually?
it would be ok with the client to put up a dialog at startup,
asking the user if this is a "remote" or "local" connection,
but i can't figure out how to switch between databases,
since they seem to be "hardwired" from the design area.
this is very important to the client; without this capability,
the project will probably not continue.
help (please!)
rm.