Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling 1:M:M with views
Message
De
05/02/1999 10:25:58
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
 
 
À
05/02/1999 10:14:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00184085
Message ID:
00184359
Vues:
29
Bob,

>> Anyway... I guess the answer is there is no one answer. However, you CAN code it to act the way you want. <<

>> As someone said, if
you are switching to your GrandChild view, and the parent is a new record, don't requery, just set a filter on the view. <<

Yes, this could be done as an ad-hoc thing, but I'm finding it hard to picture a general solution for an n-level heirarchy based on p-views that are then filtered. For this to work, the grandchild view would have to be parameterized on the top-level parent, then filtered on its own immediate parent, instead of simply being parameterized on its own parent. At n levels, this creates quite a bowl of spaghetti, as each child, grandchild, etc. would have to contain a foreign key to the top level. A totally general solution allowing an n-level heirarchy to be handled in any situation would require each child table to contain a foreign key to every table at every level above it. The troubles multiply geometrically.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform