General information
Category:
The Mere Mortals Framework
Title:
HowTo Dataenvironment passed bizobj deloader
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
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