Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Business Objects and Private Datasessions
The nDataSession property of business objects is not being "honored" in my implementation. I'm not using COM - just a regular VFP app. Am I doing something wrong, or is this functionality reserved for special circumstances?
I need private datasessions because I have several levels of containership, and sometimes the same business object will be open twice. When you close one - well - that wipes out all the views used by the other objects of the same class in that datasession.
To get around this, I've created session-based interfaces (i.e. objects of type session) for a number of my classes, but this is cumbersome. Is there a way to get that private datasession functionality working?
On a related note, though, once the session based interfaces are created, they are awesome. It allows me to program to interface, a la other OO languages (i.e. C#), and I don't have to worry about accidentally programming to implementation. This would be a great thing to have in MM 8! Of course, I'm always open to alternative approaches.
Thanks!
David
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