General information
Category:
The Mere Mortals Framework
>Hi everybody!
>
>I have a form that pretty much just has a bizobj and a grid.
>
>The bizobj's NoDataOnLoad property is set to .f., which means that the underlying view will be opened normally (without the nodata option).
>
>The problem I'm having is that for some reason when the form is loading, by the time the Bizobj is instantiated, set deleted is set to OFF(!!!!).
>
>As a result the grid shows a number of records that have been deleted.
>
>The way I solved this was by sending the cSessionEnvironment object on the form all the way to the back, so it instantiates BEFORE the bizobj and set deleted has the right setting (ON).
>
>This seems a "patchy" solution to me; especially because since we were kids our moms have always taught us to send our bizobjs to the very back of the forms so they instantiate FIRST.
>
>Is there any setting anywhere in the framework that will set deleted to ON as the default for my application?
>
>THanks!
>
>Alex
>
>PS: VFP7 MM version 6.0b
Actually, the sessionenvironment class should be the first one to instantiate. Whenever you create a bizobj form, the sessionenvrionment class will always be the only class on the form; therfore, it should be the first thing to instantiate.
Previous
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