Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
The strange functionality is tied to the IncludeInForm settings. By default, all business objects are included in a from Save(), but only the primary business object is included in anything else (Edit(), Add(), Undo(), etc.). So, when you call Edit() on the secondary BO, the form is watching it because it is included in a form Save(), and when it becomes dirty (because you called Edit() on it), the Save button becomes enabled. But, since only the primary business object is included in the undo, the undo button does not become enabled. To have the MaintenanceFormToolstrip completely handle the parent BO and completely ignore the child BO, you will need to set the form's IncludeInFormSave property to PrimaryBusinessObject. Then, the MFTS will handle the primary BO and your buttons will handle the child BO.
|