Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to get a field in related table
Message
 
À
17/08/2006 15:22:20
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Divers
Thread ID:
01146540
Message ID:
01147039
Vues:
26
>As I navigate through a dataset I want to save a value in a related table to a public variable.

If you create a child business object that retrieves data from the related table, you can register the child business object with the parent (the one that owns the DataSet you're navigating through) then put code in the child object's HookParentNavigated() method to retrieve the associated row. The HookParentNavigated() method receives the primary key of the parent object (in e.PrimaryKeyValue) to make it easy to retrieve the associated data.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform