Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suggestion
Message
 
À
27/09/1997 22:19:44
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapour
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00051948
Message ID:
00052097
Vues:
34
>My friend, Chong HanWah, was suggesting putting 'ParentTable.ParentKey' in the default value of the child table validation rule. He was suggesting that if the child table is always related to the parent table, the child table will always get the correct default parent id whenever a new record is appended. In this way, the AllowAddNew=.T. will work without any coding on the form.
>
>Will this work? It doesn't sound safe. But I can't think of any situation where it won't work. What is your opinion?

Tai, It might work, but I haven't tested it. However, I don't like using properties in the DBC for this kind of data handling. The parent key is directly related to the form the user is working on. This should be a form property (this is what I use) or an application property if it might be used on several forms.

Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform