Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
01518054
Message ID:
01518941
Views:
59
Robert,

>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...

Is this a Windows or Web app? Can you post the values you are using for the MM .NET binding properties?

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