Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clistobjedit - Add parent, add children, no foreign key?
Message
From
29/10/2003 11:11:15
Scott Malinowski
Arizona Fox Software LLC
Arizona, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Clistobjedit - Add parent, add children, no foreign key?
Miscellaneous
Thread ID:
00844108
Message ID:
00844108
Views:
47
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
Map
View

Click here to load this message in the networking platform