Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Primary Id
Message
From
02/01/2001 19:06:00
Bill Breay
Custom Business Software
Arvada, Colorado, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Primary Id
Miscellaneous
Thread ID:
00458705
Message ID:
00458705
Views:
60
Hi All,

I am haveing two problems, probabily related.

I have a cbizobjmaintenance form with 5 pages. The first page has the list of the parent records, the second page has the detail for the parent and pages 3-5 each have a different child record. No problem here.

The child bizobjs are set up as children of the parent in each biz obj.

When I add a new parent, enter data in the detail page fields and click save before leaving the detail page (page 2) everything is OK. All child records are added and match to the parent.

When I add a new record, enter data in the detail page fields and click on another page without clicking 'save' on the detail page and enter data on any of the children pages all records are added with data BUT the foreign key in the children records do not match the primary key of the parent.

For example if the next parent primary key should be 100, the foreign key of each child record is 100 but the primary key of the parent is 101. The newid is apparently hitting twice.

Also, (the second problem) I am not getting a 'Do you want to save the record' message if I move off the parent onto a child.

There was a similiar thread last year but no conclusion was apparent.

Any help would be apppreciated.

TIA

Regards

Bill
Next
Reply
Map
View

Click here to load this message in the networking platform