Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving from a Child Buisness Object
Message
From
14/06/2005 10:08:38
Dave Redding
Tenaska Marketing Ventures
Omaha, Nebraska, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Saving from a Child Buisness Object
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
MS SQL Server
Miscellaneous
Thread ID:
01023097
Message ID:
01023097
Views:
64
Well in brief, my question is what am I missing, or what should I check.

I have a datagrid on a form that shows information related to a current record. The related information is stored in a separate table, so we use a separate BO. The grid needs to be editable, so I register the BO as a child BO of the BO that holds the main record. As I understand, when the primary BO is saved so should the child. But that’s not happening.

Here is what I’ve tried.

Manually assigning the datasource of the grid to a table from the business object, then updating the BO biased off of that table. Doesn’t work, I get "Table does not have a primary key" errors.

Manually calling the updatefromdataset method. Doesn’t seem to do anything.

And I’ve tried many other code tweaks at the business object level, but those two are the centerpieces of everything I’ve tried.

Some additional information, the grid is the MM inherited Infragistics WinGrid.

In the business object, I have to change the updatecommandname (Assuming that’s what needs to be changed) So that the BO Gets it's information from one View in SQL but saves changes to another.

Thanks in advance for any help I can get!

Cheers!

Dave
Next
Reply
Map
View

Click here to load this message in the networking platform