Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox
Message
From
13/07/2011 08:17:53
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Combobox
Miscellaneous
Thread ID:
01518054
Message ID:
01518054
Views:
82
I have a combobox with all properties set as stated in the "Jump Start". When I save the "BindingValueSource" business object all fields are filled in as expected, but my FK field gets replaced with the number 0 instead of retaining the value that was passed when the save began.

When I create the relationship on the database the save throws an error stating that there's a conflict on the "BindingSource" business object of the combobox. I'm only adding one record and thats to the "BindingValueSource" business object. When I get to "mmBusinessForm.cs" and look at the "bizObj" it has all the values I'm expecting. When it gets to:

// Call the business object's SaveDataSet method
result = bizObj.SaveDataSet(tableName, currentRow);

-------->Line 1468 on mmBusinessForm.Save

It throws an error when I have the relationship between the two tables.

The Insert statement sonflicted with foreign key constraint...
Next
Reply
Map
View

Click here to load this message in the networking platform