Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling 1:M:M with views
Message
From
04/02/1999 17:13:15
 
 
To
04/02/1999 17:04:33
Kenneth Downs
Secure Data Software, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00184085
Message ID:
00184090
Views:
26
>The trouble comes when a user creates a new record at the parent level. Consider this scenario:
>1. User creates new parent record
>2. User adds a single child record to new, unsaved parent.
>3. User adds grandchild records(s) to the new, unsaved child
>4. User attempts to add a second child record.
>
>BANG! What happens to the grandchild records? You can't save them because they'll be orphaned (or would that be grand-orphaned?)


Use Table Buffering on the child and grandchild. Cascade your save so the it saves from parent to child to grandchild... I would even wrap the table updates into a transaction.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform