Information générale
Catégorie:
Produits tierce partie
>>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.
Précédent
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