Govinda,
>This is my first post for support on this form. Unfortuately I don't have a paid registration, so I can't search to see if there were ever any posts on this topic.
>
>I have a form where the user creates an account and the fields are mapped to 3 different related tables (for example: User, UserSettings, UserContactInfo). When I handle the submit on this form, I need to start a transaction attempt to insert the User row, then UserAddress and UserSettings, but if there are any broken rules rollback all insert attempts.
>
>I tried following the MM.net developer guide with no luck. I specified the Foreign Key in the child object and set AutoSaveOnParentSave to true. The UserID was never populated in the child tables.
Have you set the child business object's ForeignParentKeyField property? I recommend setting a breakpoint in mmBusinessObject.PopulateForeignParentKeyField() to see what's happening at run time.
Best 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