Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Databases without exitig program
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00541625
Message ID:
00687574
Views:
11
Jon,

We are working on our first project using MM and would like to have multiple companies each with its own user security as in yours.
Any info that you can provide as to which classes, PEM, etc to modify would be greatly appreciated.
Thanks in advance.


>>>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
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Reply
Map
View

Click here to load this message in the networking platform