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


12»»

Unable to get Parent Child Relationship to...Expand / Collapse
Author
Message
Posted 05/30/2008 10:57:41 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/29/2008 5:46:38 PM
Posts: 147, Visits: 516
I cannot seem to get the relationship to work properly on add. When I add a record, the record does not receive the parent key value from the parent bo? 

I think that I have covered everything

I have two tables

Parent Table

Child Table

I established the relationship in the DDT

Established to parentrelationship on the BO

Established the parent BO in the BO on the form.

Configured Childform.

Post #16728
Posted 05/30/2008 11:56:30 AM


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 @ 2:02:58 PM
Posts: 644, Visits: 10,954
Hi Michael.

Just checking, but you have set the  Primary and Foreign keys on the Child-Parent Relationship Editor of your Child BO, right?

 

Also, have you set the ChildBO ParentBusinessObject property on your Child form?

Post #16732
Posted 05/30/2008 3:05:16 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/29/2008 5:46:38 PM
Posts: 147, Visits: 516
Yep
Post #16742
Posted 05/30/2008 3:16:27 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 @ 2:02:58 PM
Posts: 644, Visits: 10,954
I guess this is a case for Super Man then. He will soon be around.
Post #16744
Posted 05/30/2008 3:32:22 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/29/2008 5:46:38 PM
Posts: 147, Visits: 516
Yeah I dont get it??

Here is my setup

BO

DDT

Post #16745
Posted 05/30/2008 4:31:04 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 @ 2:02:58 PM
Posts: 644, Visits: 10,954
And on your parent form, for your ChildBO, you have set the ParentBusinessObject property?

Post #16747
Posted 05/30/2008 4:37:13 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/29/2008 5:46:38 PM
Posts: 147, Visits: 516
Yes,

Now, is the relationship code executing based off of the parentbo editing state? I have a listview on the parent form which is the child of a parent form.   

Post #16749
Posted 05/30/2008 6:51:14 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 7:31:07 PM
Posts: 1,241, Visits: 3,131
Did you include the instance of the child BO that is dropped on the form in the Form's add? I.e. set the appropriate IncludeInForm(Add/Delete/Edit/Save/Undo/Navigate) properties?
Post #16751
Posted 05/30/2008 10:26:39 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:17:19 AM
Posts: 4,379, Visits: 4,420
Yeah, you are missing something really basic as this is not a complicated implementation....instead of going through a hundred forum posts out here, do one of two things, or both.

  1. Open one of the SF samples that shows how to use a relationship (CRM sample application, ChildFormDialog sample, etc).
  2. Post a quick sample of your basic implementation on this thread and I will correct your problem (within the basic sample...not your application code) so you can see what you are missing....this is faster than going back and forth.
Post #16752