General information
Category:
The Mere Mortals Framework
Title:
MM and Stonefield: Return Current Database
Hello everybody,
we just started to work with Stonefield and here is the first question:
every time we run the application, Stonefield suppose to check if any tables in the database need update. So far everything works. cStonefield.Init() calls it's OpenDefaultDatabase()method that sets our database. No problem here, just one thing: cStonefield class sets current database in the Default datasession. Then cStonefield class calls oSDTMgr.NeedUpdate() method. Now, oSDTMgr runs in it's own Private datasession where our current database is not open. So naturally, oSDTMgr.Parent.GetDatabase() returns empty string and DBC() returns empty string, tables count is 0 and so on. Another words Update() is not done.
It's pretty obvious why Update() didn't happened but what would be the best and accurate solution for this problem? I couldn't find in Developer's Guide anything about it unless I missed that.
Should we set SDTMgr datasession to Default?
I would appreciate any thoughts or advise.
Thank you very much.
Regards
Igor
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only