General information
Category:
The Mere Mortals Framework
Title:
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!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only