Frank,
>Thanks, that helps a little bit more, however I am still getting prompted if to save changes.
>
>Here is what I did:
>
>I bound the Delete button to "CourierAirWayBill" (interesting that I didn't have an ellipsis button to display the selection dialog as described in the help file).
>
>I added this code in:
>
>
public override bool DeleteEntity(mmBusinessObject businessObject, mmBusinessEntity entity)
> {
> this.IgnoreNavigation = true;
> bool result = base.DeleteEntity(businessObject, entity);
> this.IgnoreNavigation = false;
> return result;
> }
>
>If I run my screen, search for some records, select one and then click Delete, I get prompted if to delete, I say yes and the row disappears from my grid which displays the results of my initial search.
>
>If then run a search again, or move onto a different row in the grid, I get prompted: "Do you want to save changes?"
>
>Is there somewhere else that the IgnoreNavigation needs to be set too?
Be sure to check any child business object’s ImmediateDelete = true if their AutoDeleteOnParentDeleted is true.
When a child object is set to auto delete on parent deleted, but it’s immediateDelete is false, it’s leaving a non-committed delete on the child dataset. This would display the “AskSaveChanges” dialog.
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