Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session Object question...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00264632
Message ID:
00264786
Views:
22
>Christof,
>
>>>Will the controls in the inactive pages lose their bound data reference and error?
>>
>
>>Yep, when you refresh them. Grids, listboxes and comboboxes have some code to refresh themselves automatically, so you would get a problem with them. Also, you must switch the datasession BEFORE the page is activated.
>
>Thanks for saving me the time I would have spent diving into this. It sure would be nice if VFP 7.0 allowed container objects to have their own datasession. VFP would be a much more flexible and independent object development environment if datasessions were available at the business element level. My frameworks would benefit greatly.
>
>Thanks,
>Bill

Hmm... sounds like you kinda want formSets...

The SESSION is designed for exactally using it at the business level. You can base your Business Object on the session class... or, in the init of your bizObj, create a session. Now, any Data Environment the BizObj creates is contained in the private session...

Now, the UI communicates with the BizObj to get the values. Of course, you can take a short cut and if the BizObj detects that it is contained by a form, it will not need to create a private session, and can use the one provided by the form.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform