Information générale
Catégorie:
The Mere Mortals Framework
Titre:
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
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