Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Objects across DataSessions?
I seem to have found a blank spot in my OOP knowledge regarding how objects and VFP Datasessions interact. Specifically, I wanted to hang a few lookup type business objects off the main application object, and then use them from other private datasession forms later.
My example thinking goes like this:
goapp.oLookup is a bizobject with Lookup.DBF. goapp.oNotes has Notes.DBF and Notes.FPT. They both sit in the global(default) datasession. PrvForm has a private datasession with an oPrivate bizobject. oPrivate wants to use oLookup to put a LookupID in the primary table. It also wants to put a NoteID in the table the same way, but instead of just pointing to an existing record, it needs to create a new record in oNotes.
That's when I got bitten, crossing datasessions and objects in my mind and not seeing how they work together. Am I overthinking all of this, will the bizobject references required 'solve' the issue of changing datasessions?
I'm looking a little more for theory than code, because I think my test code is suffering more from theory failure.
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