Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clistobjedit - Add parent, add children, no foreign key?
Message
De
29/10/2003 11:11:15
Scott Malinowski
Arizona Fox Software LLC
Arizona, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Clistobjedit - Add parent, add children, no foreign key?
Divers
Thread ID:
00844108
Message ID:
00844108
Vues:
48
Greetings!

I have two clistobjedit objects on my bizobj form. The first is the parent bizobj grid, the second a child bizobj grid.

When I add a parent record, then add children during a different session, the child records are saved with the correct foreign key back to the parent. However, when I add the parent and the children in the same session, the children all end up with 0 in their foreign field?

I have code in my child form PreSaveHook method, that like I said, works beautifully to get the foreign key from the parent. (I'm using the NEWID() primary key value, NOT the automatic Integer incremented primary key). In debug mode when adding children and parent simultaneously, the parent key is 0.

Any ideas?

Thanks!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform