Information générale
Catégorie:
The Mere Mortals Framework
>>Jason
>>Thanks for your reply.
>>
>>What you replied is very close to what I want to do. Having tried manually to change the local directory to do the same thing but it does not affect the database which is selected until one exits the program and restarts. As I understand from my probing the SetDBCPath looks as though it should change the path based upon the database selected. What I have not found is when a application starts up is where that code runs.
>>
>>Thanks
>>Jon
>
>What causes you to notice that you're not in the appropriate dbc?
>
>Something I forgot in my last post that might help... we use the same MetaDBC.cKey value for all of our "non-common" databases (the value of cDefaultDatabaseName property in our app's subclass of cDataEnvironment). This is how the app decides where to look for tables/views referenced in your data environments. It searches the MetaDBC for the value in that property, and then uses either LocalDBC/cRemoteDBC to get the fully qualified path to the dbc.
That gets me in direction I need. I am having t also include the "common" files i.e. - ID, Users, Groups to be company specific. I've gotten it working like I need now.
Thanks again
Jon
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement