Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CBizObjMaintenanceForm AddNew strange behavior.
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00621909
Message ID:
00652217
Views:
27
Igor,

>Now, here's what I've discovered. After report is closed, the view thar runs the report still selected, I can see it on the task bar. When I click Add button for the first time after report the CBizObjMaintenanceForm's BizObj InitialSelectedAlias is not selected(!!!). It is selected ONLY when I click the Add button the second time!!!

Hmmm...the New button calls the form's New() method which selects the primary business object's InitialSelectedAlias. All methods within the business object make no assumptions about which cursor was selected...they all select the business object's InitialSelectedAlias before doing anything else.

Is it possible you have code in your form or in your business object that's overriding this?

In any event, you can try selecting the alias of the primary business object manually to see if this helps.

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