Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to get a field in related table
Message
 
To
17/08/2006 15:22:20
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01146540
Message ID:
01147039
Views:
27
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform