Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary Id
Message
De
02/01/2001 19:06:00
Bill Breay
Custom Business Software
Arvada, Colorado, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Primary Id
Divers
Thread ID:
00458705
Message ID:
00458705
Vues:
62
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform