Information générale
Catégorie:
The Mere Mortals Framework
I tried it several times and all the records are always deleted. I find something strange because the set-up is like this.
I have three business objects; BizObjA, BizObjB and BizObjC. The primary is displayed in a Treeview which is BizObjA. BizObjB is a child of BizObjA and I defined it in the Builder window. I set it up as when I highlight a node in the treeview (BizObjA), BizObjB is automatically requeried. Then I click my Delete button to delete the record. My codes are the following:
* I requery this because it is not a child of BizObjA
BizObjC.requery()
BizObjC.delete(.F.,"",.T.)
BizObjB.delete(.F.,"",.T.)
BizObjA.delete(.F.,"",.T.)
For BizObjA and BizObjC, only the current record is deleted. But in BizObjB, all records are deleted. I debug it and it's doing the same thing in TABLEUPDATE(.F.) with .F. as for tlDeleteAll parameter.
Thanks a lot again.
Nerissa
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