Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving Table Buffered information in One to Many relation
Message
De
09/12/1999 07:56:34
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Saving Table Buffered information in One to Many relation
Divers
Thread ID:
00300906
Message ID:
00300906
Vues:
56
Kevin et al,

I have a form to enter information into two tables (Inventory and InventoryDetail) in a One to Many relationship. In my testing,I put two records in the InventoryDetail table. In my InventoryDetail.PreSaveHook, I call an event to fill fields in my InventoryDetail table. As I trace through the event code, all works correctly. When I get to the Databehavior Save method, I see that if the table is optimistically table buffered the following code is run:


SCAN
IF IsAdding(ALIAS())
This.SetPrimaryKeyFieldState(FLDSTATE_APPEND_EDITED)
ENDIF
ENDSCAN
GOTO TOP

When I get to the GOTO TOP, all the information entered by the event object is reverted. I'm sure this is not by design. What can I do to fix this?

TIA

Rex
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform