Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One To Many Grids
Message
From
06/06/1997 13:05:39
 
 
To
06/06/1997 05:36:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00035359
Message ID:
00035440
Views:
31
>There must be something very basic about one-to-many grids that I am missing. I have a typical invoice form with a standard relationship set in the DE between INVHEAD (invoice header) and INVDET (invoice detail) on InvNo. When I page back and forth between invoices, everything works beautifully. However, whenever I add an invoice, here's what happens:
>
>I get the new detail line data in a modal form, total the invoice (using CALCULATE SUM), and refresh the grid so that the new line will show up. The grid goes blank whenever I refresh it. I have tried SEEKing the InvNo in INVHEAD to re-align things prior to refreshing --to no avail. All of the detail is there--it re-appears as soon as I page back to the target invoice once I have completed it. TABLEUPDATEing the detail has no effect. What am I missing?
>
>TIA.
If I understand your problem correctly, it seems that you're saving the detail records (child recs) before you're saving the parent record and thus your grid is left blank because the relationship is not valid until you save the main invoice rec. Try to save the main invoice record first before you save the detail child records.
It's "my" world. You're just living in it.
Previous
Reply
Map
View

Click here to load this message in the networking platform