General information
Category:
The Mere Mortals .NET Framework
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only