Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving Table Buffered information in One to Many relation
Message
From
09/12/1999 07:56:34
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Saving Table Buffered information in One to Many relation
Miscellaneous
Thread ID:
00300906
Message ID:
00300906
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform