Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling 1:M:M with views
Message
From
04/02/1999 17:50:26
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
 
To
04/02/1999 17:13:15
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00184085
Message ID:
00184101
Views:
24
Bob,


>> 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. <<

The buffering is not the problem, parent gets optimistic record, child and grandchild get optimistic table.

The problem, which I might not have expressed precisely, is what to do when the user has not yet saved the top-level parent. With a new, unsaved, parent, a new, unsaved, child, and new, unsaved grandchildren. When the user attempts to add a new child record, you must force the user to save at that point or the grandchild records to the first child are either lost or saved as orphans.

Forcing the save brings several problems. First, it might violate business rules, requiring at least one flag and a more complicated save routine. Second, the user loses the ability to Revert and discard the new work (Admittedly not the worst). Finally, it throws out counter-intuitive save messages to the user when she is told to save the parent just to add children.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform