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