| | | 
StrataFrame 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. |
| | | | 
Advanced 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? |
| | | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: 07/29/2008 5:46:38 PM Posts: 147, Visits: 516 |
| | | | | 
Advanced 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. |
| | | | 
StrataFrame 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
|
| | | | 
Advanced 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?
|
| | | | 
StrataFrame 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. |
| | | | StrataFrame 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? |
| | | | 
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.- Open one of the SF samples that shows how to use a relationship (CRM sample application, ChildFormDialog sample, etc).
- 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.
|
| |
|
|