Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RI and adding parent and child at the same time
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
RI and adding parent and child at the same time
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01038636
Message ID:
01038636
Views:
62
Ok, it turned out to be me not setting parent table some fields correctly. It's too bad what we use APPEND BLANK in New() method. It puts blank values where it should place .NULL. instead.

Hi everybody,

I have a form with grandparent - parent - child biz objects. In some cases I don't have a parent record, so I am adding it and then a child record. The parent table and a child table had RI set up. When I try to save the child, I get "procedure cancel" error coming from RI, since the transaction is not closed and the parent record is not in the table yet. What can I do?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Reply
Map
View

Click here to load this message in the networking platform