Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New Child on New Parent fails
Message
From
28/01/2002 12:13:27
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
28/01/2002 08:18:13
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00610720
Message ID:
00611671
Views:
27
Another consideration we've used, is to add code to the pre-requery hook of the child object on the form, checking if the child is in the middle of adding a record...

RETURN !This.IsNew()

This way, you get the UI parent-child relationship requery behavior, yet it won't inadvertently trash your new records.

---J

>That's exactly it. I disabled auto-requery, now the new child record gets created and kept.
>
>Thanks.
>
>>Is the child bizobj also requerying when the parent requeries? If so, the requery will "blow it away."
>>---J
Previous
Reply
Map
View

Click here to load this message in the networking platform