General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Strange problem with DELETE and Grids
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only