Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BizObj question
Message
From
15/03/2004 22:01:06
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
15/03/2004 18:34:02
Steven Kleypas
Tarrant County College District
Texas, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00886341
Message ID:
00886576
Views:
14
Steven,

You're correct... BizObjs don't have that property. It's the data environment that you're looking to alter. In your add form's PostInitHook (assuming that you dropped that BizObj directly on the form), get a reference to the DE and make the change:
LOCAL loDE
loDE = YourBizObj.GetDataEnvironment()
loDE.AutoCloseTables = .F.
Hope that makes sense,
---J

>Jason,
>
>>Set your environment's AutoCloseTables = .F. after instantiating the lookup control on your "add form."
>
>Thanks for the reply. I don't believe that the MM framework bizobj's have such a property. After thinking this thing over, it may be better to change the "add form" so that it has its own bizobj (although redundant) and data session rather than sharing the one on the parent form. This would also make some other things on that form easier to do. Any other comments are welcome!
>
>Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform