| | | StrataFrame User
       
Group: StrataFrame Users Last Login: 12/20/2008 1:55:52 PM Posts: 149, Visits: 206 |
| | Hi All. On my winform, I have a parent-child relationship set up. I set up the business objects as specified in the help file topic "Configuring a Business Object Relationship". The children from the relationship are displayed in a DataGridView using a StrataFrame Business Binding Source. I am handling the filtering of the child table using custom code. Everything works except that when I make changes to any of the children, Strataframe blows up and tells me that I have not sent the foreign key field to my stored procedure. I thought that when I defined a parent-child relationship, Strataframe would handle the foireign keys for me automagically. Furthermore, the foreign key kield is in the child business object. What on earth could be causing this? TIA Marcia |
| | | | Advanced StrataFrame User
       
Group: StrataFrame Users Last Login: Today @ 7:53:31 PM Posts: 760, Visits: 3,283 |
| | Hi Marcia, In your child BO instance in the form, did you set the ParentBusinesObject to the Parent BO?
|
| | | | StrataFrame User
       
Group: StrataFrame Users Last Login: 12/20/2008 1:55:52 PM Posts: 149, Visits: 206 |
| | >> In your child BO instance in the form, did you set the ParentBusinesObject to the Parent BO? << Yes.
|
| | | | StrataFrame User
       
Group: StrataFrame Users Last Login: 12/20/2008 1:55:52 PM Posts: 149, Visits: 206 |
| | Hi Edhy. I apologize for wasting your time here - the field really WASN'T in the business object - I was populating it using an SP and my husband, the DBA, was giving me back the worng fields! Once he fixed the SP, everything worked like a charm |
| | | | StrataFrame Team Member

Group: StrataFrame Users Last Login: 12/23/2008 11:10:40 AM Posts: 232, Visits: 511 |
| I'm glad I refreshed! I was wracking my brain on this one trying to figure out why it wouldn't see that field, didn't think to ask if it actually existed .Just to make sure I don't leave any of your questions hanging, Is this the related error? http://forum.strataframe.net/Topic18910-7-1.aspx Regardless, glad you got it figured out |
| | | | StrataFrame User
       
Group: StrataFrame Users Last Login: 12/20/2008 1:55:52 PM Posts: 149, Visits: 206 |
| | Hi Dustin. >> Just to make sure I don't leave any of your questions hanging, Is this the related error? http://forum.strataframe.net/Topic18910-7-1.aspx << Right in one . I finally got my parent-child form working perfectly. So now I am ready to start cranking out the rest of this application... |
| | | | Advanced StrataFrame User
       
Group: StrataFrame Users Last Login: Today @ 7:53:31 PM Posts: 760, Visits: 3,283 |
| Marcia G Akins (09/02/2008)
Hi Edhy. I apologize for wasting your time here ... No need to apologize, I am constantly learning SF and I like to spend time in the forums. Glad you found the fix, I know it can be a real pain and frustrated at times, I've been there many times .
|
| |
|
|