Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'New child on new parent' not working
Message
 
To
14/05/2002 13:11:58
Bill Breay
Custom Business Software
Arvada, Colorado, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00655885
Message ID:
00656306
Views:
18
Bill,

>The code shown below (from the new() method) does not process because the type for This.RefBizobj = 'U'.

RefBizObj now gets instantiated dynamically at runtime only if you register a child business object. In the version of the Framework you were previously using, all business objects contained an instance of RefBizObj whether they had any children or not...I changed this to make business objects ligher weight.

I recommend putting a breakpoint in the parent business object's RegisterChildBizObj() method to see if it ever gets fired.

Is it possible you've overridden the Init() method of the form without issuing a DODEFAULT()? The Init() method calls the form-level "ProcessBizObj" method that registers children with parents. It does this by calling the parent business object's RegisterChildBizObj() method, passing a reference to the child business object.

You might also set a breakpoint in the ProcessBizObj() method to see if it's getting run.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform