General information
Category:
Third party products
>>I am having a problem on a one to many form. It will not delete the child records. I thought this problem had been solved. Anyone know a solution for this problem ?
>>
>>TIA
>>
>>Ian
>
>Ian, are you working with views, or tables? I don't like how the one-to-many form works too. Do you use the last build of VFX 5?
>
>Nick
Nick,
Yes I am using the latest build. Other than not deleting the records I am not having a problem with the one to many form. I am use tables. I did trace through the code this morning and found that by modifying the ondelete method of the cchildgrid class as follows:
.....
if this.OnPostDelete()
lOK = .T.
*******************************
** Hans Remiens, Thank!
*-- If record is inserted and then deleted remove from buffer
if deleted() and recno() < 0
= tablerevert( .F. )
else
if deleted() or eof()
=tableupdate(1) && ian's fix ****************
locate
else
skip +1
endif
endif
else ......
This now works, and I have sent an email to devigus to see if they see any problem with doing this, do you ? I also do not understand why they put the form in edit mode after deleting the child record.
Previous
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