Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Deleting
Message
De
24/07/2013 17:38:59
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01578432
Message ID:
01579179
Vues:
47
>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,

Thanks Kevin, that was the missing piece.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform