Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New to .NET
Message
From
10/06/2006 18:45:31
 
 
To
10/06/2006 16:48:20
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01126997
Message ID:
01128304
Views:
22
The save fails when checking the rules in the child bizobj. After tracing the code I figured out the errorprovider message: iNames_id is required. This is the fk from the parent. The retriveautoincrement is called after the rules are checked, so this is a real catch22. I'm at a loss...
>Jim,
>
>Don't think you're missing anything. I would suggest putting a breakpoint in the section of SaveDataSet where the parent key value is retrieved and step through it to see what happens. I'd also check to be sure that you have the parent set to retrieve the auto increment value. I thought I saw that in your ABusinessObject code you posted, but it never hurts to double-check.
>
>---J
>
>>Jason/Kevin,
>>
>>After setting the right breakpoints I pinpointed where things are going wrong. The child bizobj is not having its foreign key populated, despite having set the ForeignParentKeyField property. It was my understanding that setting this field to the correct value would automatically get the parent id and populate the dataview field with the correct value. Am I missing something?
Previous
Reply
Map
View

Click here to load this message in the networking platform