StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Update of Child table Not sending Foreign Key...Expand / Collapse
Author
Message
Posted 09/02/2008 11:33:57 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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

Post #18908
Posted 09/02/2008 1:05:14 PM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced 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?

 
Post #18915
Posted 09/02/2008 1:32:50 PM
StrataFrame User

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

Post #18916
Posted 09/02/2008 2:24:12 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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

Post #18927
Posted 09/02/2008 2:42:15 PM
StrataFrame Team Member

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

Post #18931
Posted 09/02/2008 5:04:06 PM
StrataFrame User

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

Post #18941
Posted 09/02/2008 6:35:25 PM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced 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 .

 
Post #18943
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 8:05pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.062. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.