Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete class for parent/child
Message
De
18/05/1998 00:51:24
Janet Fernando
Computer Craft Corporation
Quezon, Philippines
 
 
À
15/05/1998 11:36:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00098115
Message ID:
00100036
Vues:
81
>>>Does anyone have or know of a delete button class which will allow me to delete child records of the parent? I realized (rather late I'm afraid) that the delete button I'm using assumes I want to delete for the master alias, and pays no attention to the children.
>>>
>>>I made things complicated for myself in that I was trying to use the same set of buttons at the bottom of the form and have them apply to my master table when I was on Page 1 of a page frame, and the child table when I'm on Page 2. The other parts seem to be working, but the delete is really insufficient.
>>>
>>>On the other hand, who needs to delete anyway;)
>>>
>>>Thanks,
>>>
>>>Sylvia
>>Have you try using referential integrity? It allows automatic deletion of your child table once your link up with the parent table.
>
>Janet -
>Yes, I'm using RI. But the problem is that after I delete a child record, the next record is displayed, but it's not a child of the current parent, but of another parent.
>Sylvia

I guess the relationship between your parent and child has been broken. Are you using link master on your grid? Or you are using the traditional set up for relationships?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform