Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loosing the primary bizobj with FindForm
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00599905
Message ID:
00599979
Views:
14
Jon,

>I have a simple form subclassed from cBizObjForm. On the form is one bizobj that is marked as primary. There is one command button that calls FindFormActivate. The form does have the cFindForm and cPrimaryViewParameter values set correctly. If I check for the ThisForm.oBizObj.lPrimaryBizobj I get .t. and checking for .Name get the correct BizObj name. When the FindForm is called not problems occur and the lookup works properly. (This findform is working with no problems with another form in the app.) The problem is that when the Select is clicked the calling form looses the promary bizobj setting.

Are you saying that the form's oBizObj property no longer contains a reference to the primary business object after returning from the find form? At any rate, I recommend setting a breakpoint in your calling form's FindProcess() method to see what's going on. FindProcess() contains code that resets your form's primary bizobj if another business object has temporarily been set as primary.

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
Reply
Map
View

Click here to load this message in the networking platform