Brian,
>I have a Parent BO with child – grandchild BO’s. I need to have everything wrapped in a transaction for the save so I’m calling the TransactionBegin on the parent BO. Then the forms Save(parentBO) method.
>
>How do I know if the parents save was successful ?The save method did’nt appear to return anything that indicated success. If the rules passed did everything else?
Actually, you don't need to manually handle the transactions because MM .NET takes care including parent, child, grandchild, etc. objects in a single transaction for you. All you have to do is register the child objects and they will participate in the same transaction.
To have this feature kick in, set your business objects' AutoSaveOnParentSaved property to true (you can do this at the ABusinessObject level).
The Save() method returns an enumerated value of type mmSaveDataResult. If it is equal to mmSaveDataResult.RulesPassed everything went well in all business objects. This is because broken rules automatically bubble up the reference chain to the parent object's broken rules collection. For more information, see the MM .NET Help Topic "Establishing Business Object Relationships".
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