Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HowTo Dataenvironment passed bizobj deloader
Message
From
17/05/2004 14:14:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
HowTo Dataenvironment passed bizobj deloader
Miscellaneous
Thread ID:
00904643
Message ID:
00904643
Views:
50
I have a situation where my dataenvironments for a bizobj have become very large with the number of views it contains (views for the F/M form, views for Special Utility Methods, views for transactions, etc., all for the same bizobj). I also need to instantiate many of my bizobj's in code instead of dropping them on a form because mutliple application projects use the same classes which had caused each application to have classes from all the other projects added to the other projects when the projects are compiled.

What I would like to know is
(1)How I can pass a DataEnvironment class name to the bizob/deloader mechanism being instantiated to load a specific dataenvironment (tailored for this task). I don't want to break the timing of having the bizobj / deloader instantiate before form controls do, so the technique has to be close in timming to bizobj / deloader init.

OR

(2) Maybe a combination of instantiating the bizobj without a dataenvironment, passing a parameter through bizobj.init, and then calling this.odeloader.createdataenvironment(tcDataEnvName) would work.

I have thought of using global variables or properties on the application object, but want to stay with "best practices" that other Mere Mortals users may have already developed that is cleaner. As always, Keven, your comments or code snipets are welcome.

Gary Pike.
Next
Reply
Map
View

Click here to load this message in the networking platform