Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Strange problem with DELETE and Grids
Versions des environnements
I have a weird problem.
I have a Form which has Parent and Child table that have usual Relation in DE and Parent have Order.
I have a two grids for both tables also.
Now, I have dataobject which is custom class that has methods delete, save and cancel which are called through buttons on data toolbar. Dataobject.delete() is simple DELETE and thisform.refresh() and Dataobject.cancel() is simple TABLEREVERT(.T.) and thisform.refresh(). When I press button Delete on data toolbar , data in Parent table is automaticaly deleted and I can't do cancel with tablerevert. But when I put ordinary command buttons Delete and Cancel on Form with direct call DELETE and TABLEREVERT then data in parent can be reverted if canceled.
Buffering is set correctly to 3.
I don't remember that I run into this strange problem before, so if anyone knows what is about...
I can tell that source of a problem is that Order of Parent table that I put in DE. If I don't put Order then it's ok for both ways.
If anyone has additional questions, feel free to ask.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement