Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Clistobjedit - Add parent, add children, no foreign key?
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
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